Skip to content

Commit

Permalink
Merge pull request #3 from projectsesame/rewrite-body
Browse files Browse the repository at this point in the history
Rewrite body
  • Loading branch information
yangyy93 authored May 20, 2024
2 parents 5dcd9b0 + fb0f043 commit 331998d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ FROM busybox
COPY --from=0 /extproc /bin/extproc
RUN chmod +x /bin/extproc

ARG EXAMPLE=payload-limit
ARG EXAMPLE=body-rewrite

EXPOSE 50051

ENTRYPOINT [ "/bin/extproc" ]
CMD [ "payload-limit", "--log-stream", "--log-phases", "payload-limit", "32" ]
CMD [ "body-rewrite", "--log-stream", "--log-phases"]
18 changes: 9 additions & 9 deletions deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: payload-limit-demo
namespace: payload-limit-demo
name: body-rewrite-demo
namespace: body-rewrite-demo
annotations:
spec:
replicas: 1
selector:
matchLabels:
app: payload-limit-demo
app: body-rewrite-demo
template:
metadata:
creationTimestamp: null
labels:
app: payload-limit-demo
app: body-rewrite-demo
spec:
containers:
- name: payload-limit-demo-container
- name: body-rewrite-container
image: >-
release.daocloud.io/skoala/envoy-extproc-payloadlimit-demo-go@sha256:dcc5ba7aa2790e87b0cd46799363367b54202585794ebfe87248264f111e63d8
release.daocloud.io/skoala/envoy-extproc-body-rewrite:5dcd9b080a1afa67e19d29428d8d13a274aa061f
ports:
- containerPort: 50051
protocol: TCP
Expand All @@ -44,8 +44,8 @@ spec:
apiVersion: v1
kind: Service
metadata:
name: payload-limit-demo
namespace: payload-limit-demo
name: body-rewrite-demo
namespace: body-rewrite-demo
annotations:
spec:
ports:
Expand All @@ -54,7 +54,7 @@ spec:
targetPort: 50051
nodePort: 31928
selector:
app: payload-limit-demo
app: body-rewrite-demo
type: NodePort
sessionAffinity: None
externalTrafficPolicy: Cluster
Expand Down
10 changes: 5 additions & 5 deletions envoy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ static_resources:
"@type": type.googleapis.com/envoy.extensions.filters.http.ext_proc.v3.ExternalProcessor
grpc_service:
envoy_grpc:
cluster_name: payload-limit
cluster_name: body-rewrite
timeout: 30s
failure_mode_allow: true
message_timeout: 0.2s
Expand Down Expand Up @@ -70,19 +70,19 @@ static_resources:
socket_address:
address: upstream
port_value: 8000
- name: payload-limit
- name: body-rewrite
dns_lookup_family: V4_ONLY
lb_policy: LEAST_REQUEST
load_assignment:
cluster_name: payload-limit
cluster_name: body-rewrite
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: payload-limit
address: body-rewrite
port_value: 50051
hostname: payload-limit
hostname: body-rewrite
type: LOGICAL_DNS
typed_extension_protocol_options:
envoy.extensions.upstreams.http.v3.HttpProtocolOptions:
Expand Down

0 comments on commit 331998d

Please sign in to comment.