I edit the gateway yaml to enable TLS
kubectl edit gateway -n knative-serving knative-ingress-gateway -o yaml
by adding
tls:
mode: SIMPLE
privateKey: /etc/istio/ingressgateway-certs/tls.key
serverCertificate: /etc/istio/ingressgateway-certs/tls.crt
However, after sometime, the gateway configuration is reinitialized and my update is removed.
Steps to recreate the problem:
- Modify Gateway
oc edit gateway knative-ingress-gateway --namespace knative-serving
e.g.
BEFORE:
AFTER:
- Restart one of serving pods
e.g.
oc delete pod -n knative-serving autoscaler-64c549bcf4-vnq6h
- Verify Gateway again
Modified Gateway is initialized (i.e., 'test' becomes "*" again).