knative-serving: Workaround Istio race wrt Gateway creation (#2092)
When deploying knative-serving there a race due to an Istio issue that ends up having cluster-local-gateway misconfigured because of conflicting ports. In a nutshell Istio creates listeners based on Gateway ports and the corresponding Services (if any) and in our case we have two Services (cluster-local-gateway, knative-local-gateway) with port 80 and different targetPort (8080, 8081). In normal operation the pod gets the following listeners: ADDRESS PORT MATCH DESTINATION 0.0.0.0 8080 ALL Route: http.80 0.0.0.0 8081 ALL Route: http.8081 We have seen on fresh deployment to end up with only 8081:8081 and istio complaining with: Error adding/updating listener(s) 0.0.0.0_8081: duplicate listener 0.0.0.0_8081 found To fix that add a label in knative-local-gateway service so that it gets ignored by istio when translating gateway ports. Signed-off-by: Kimonas Sotirchos <kimwnasptd@arrikto.com>
This commit is contained in:
parent
3dad839fb0
commit
b9526c9d93
|
|
@ -8,6 +8,7 @@ patchesStrategicMerge:
|
|||
- patches/configmap-patch.yaml
|
||||
- patches/namespace-injection.yaml
|
||||
- patches/clusterrole-patch.yaml
|
||||
- patches/service-labels.yaml
|
||||
patches:
|
||||
- path: patches/sidecar-injection.yaml
|
||||
target:
|
||||
|
|
|
|||
|
|
@ -0,0 +1,7 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: knative-local-gateway
|
||||
namespace: istio-system
|
||||
labels:
|
||||
experimental.istio.io/disable-gateway-port-translation: "true"
|
||||
Loading…
Reference in New Issue