Skip to content

Commit

Permalink
add deployment yaml &cleanup envoy.yaml (#5)
Browse files Browse the repository at this point in the history
Signed-off-by: gang.liu <[email protected]>
  • Loading branch information
izturn authored and yangyy93 committed May 20, 2024
1 parent 06ce1df commit a2fe648
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 19 deletions.
68 changes: 68 additions & 0 deletions deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: payload-limit-demo
namespace: payload-limit-demo
annotations:
spec:
replicas: 1
selector:
matchLabels:
app: payload-limit-demo
template:
metadata:
creationTimestamp: null
labels:
app: payload-limit-demo
spec:
containers:
- name: payload-limit-demo-container
image: >-
release.daocloud.io/skoala/envoy-extproc-payloadlimit-demo-go@sha256:dcc5ba7aa2790e87b0cd46799363367b54202585794ebfe87248264f111e63d8
ports:
- containerPort: 50051
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
imagePullPolicy: IfNotPresent
restartPolicy: Always
terminationGracePeriodSeconds: 30
dnsPolicy: ClusterFirst
securityContext: {}
schedulerName: default-scheduler
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 25%
maxSurge: 25%
revisionHistoryLimit: 10
progressDeadlineSeconds: 600

---
apiVersion: v1
kind: Service
metadata:
name: payload-limit-demo
namespace: payload-limit-demo
annotations:
spec:
ports:
- protocol: TCP
port: 50051
targetPort: 50051
nodePort: 31928
selector:
app: payload-limit-demo
type: NodePort
sessionAffinity: None
externalTrafficPolicy: Cluster
ipFamilies:
- IPv4
ipFamilyPolicy: SingleStack
internalTrafficPolicy: Cluster

---


19 changes: 0 additions & 19 deletions envoy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,25 +50,6 @@ static_resources:
typed_config:
'@type': type.googleapis.com/envoy.extensions.filters.http.router.v3.Router
clusters:
- name: listener
connect_timeout: 0.250s
type: LOGICAL_DNS
lb_policy: LEAST_REQUEST
dns_lookup_family: V4_ONLY
typed_extension_protocol_options:
envoy.extensions.upstreams.http.v3.HttpProtocolOptions:
"@type": type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions
explicit_http_config:
http_protocol_options: {}
load_assignment:
cluster_name: listener
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: localhost
port_value: 8000
- name: upstream
connect_timeout: 0.250s
type: LOGICAL_DNS
Expand Down

0 comments on commit a2fe648

Please sign in to comment.