From fc222a9169eb865833b3aa5cdf90ac1e7d7ac79e Mon Sep 17 00:00:00 2001 From: William Lam Date: Thu, 17 Feb 2022 19:45:29 -0800 Subject: [PATCH] fix: Update Envoy to listen on 80/443 Closes: #803 Signed-off-by: William Lam --- files/downloads/knative-contour/overlay.yaml | 29 ++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/files/downloads/knative-contour/overlay.yaml b/files/downloads/knative-contour/overlay.yaml index 2b204dc0..5a446431 100644 --- a/files/downloads/knative-contour/overlay.yaml +++ b/files/downloads/knative-contour/overlay.yaml @@ -9,11 +9,28 @@ spec: dnsPolicy: ClusterFirstWithHostNet #@overlay/match missing_ok=True hostNetwork: true + containers: + #@overlay/match by="name" + - name: envoy + ports: + #@overlay/match by="name" + - name: http + containerPort: 80 + #@overlay/match by="name" + - name: https + containerPort: 443 #@overlay/match by=overlay.subset({"kind":"Service", "metadata": {"name": "envoy", "namespace": "contour-external"}}) --- spec: type: NodePort + ports: + #@overlay/match by="name" + - name: http + targetPort: 80 + #@overlay/match by="name" + - name: https + targetPort: 44 #@overlay/match by=overlay.subset({"kind":"Job", "metadata": {"namespace": "contour-external"}}) --- @@ -26,6 +43,18 @@ spec: #@overlay/match missing_ok=True imagePullPolicy: IfNotPresent +#@overlay/match by=overlay.subset({"kind":"Deployment", "metadata": {"name": "contour", "namespace": "contour-external"}}) +--- +spec: + template: + spec: + containers: + #@overlay/match by=overlay.subset({"name": "contour"}) + - args: + #@overlay/append + - --envoy-service-http-port=80 + - --envoy-service-https-port=443 + #@overlay/match by=overlay.subset({"kind":"Job", "metadata": {"namespace": "contour-internal"}}) --- spec: