diff --git a/deployment.yaml b/deployment.yaml new file mode 100644 index 0000000..e49029c --- /dev/null +++ b/deployment.yaml @@ -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 + +--- + + diff --git a/envoy.yaml b/envoy.yaml index c53588d..c8e93df 100644 --- a/envoy.yaml +++ b/envoy.yaml @@ -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