-
Notifications
You must be signed in to change notification settings - Fork 45
The serving-operator incorrectly re-initialize knative-ingress-gateway configuration #160
Comments
In the case of overriding the selector on the Gateway, a means is provided as part of the KnativeServing custom resource spec. Would a similar capability be useful here? Or a means to indicate that the operator shouldn't alter the gateway? It seems challenging to provide consistent/reliable behavior while supporting both manual overrides to the Gateway and overrides configured inside the KnativeServing resource. |
@chunlongliang-ibm You have a discussion going on with platform-specific configurations at #122. There are multiple options as candidates to implement. Mutating webhook is one of them. |
@houshengbo I deploy knative serving with serving-operator in openshift (OKD), and I also need TLS enabled (and I follow the instruction to modify gateway configuration in https://github.com/knative/docs/blob/master/docs/serving/using-a-tls-cert.md). I think it is OK for my use case if serving operator implementation has option to edit gateway configuration. |
@chunlongliang-ibm I guess I found a better solution to the case of knative-ingress-gateway config. As you can see here: knative-ingress-gateway is valid property in the CRD, so when you apply the CR, you can config your knative-ingress-gateway in the CR before applying it. Then knative-ingress-gateway will be propagated into your environment. |
It seems that we can config the "selector" but not "servers" config of knative-ingress-gateway. |
#302 might be the solution for this ticket. |
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:
oc edit gateway knative-ingress-gateway --namespace knative-serving
e.g.
BEFORE:
port:
name: https
AFTER:
port:
name: https
e.g.
oc delete pod -n knative-serving autoscaler-64c549bcf4-vnq6h
Modified Gateway is initialized (i.e., 'test' becomes "*" again).
The text was updated successfully, but these errors were encountered: