-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Knative operator looks for "istio-system" namespace when custom istio gateway is set #565
Comments
I think it is bug in https://github.com/knative/operator/blob/main/pkg/reconciler/knativeserving/common/ingress_service.go#L28. |
@nak3 Creating the istio-system namespace created removed the error and created the Furthermore, when I read the documentation right, we can set the local cluster gateway, but this then also just works for the Although the original error is now gone the routes created by the operator for the "functions" now show
which looks similar to Issue 9727 The error |
@nak3 If I remember well, the Service should look for the ns for the istio, but the gateways are installed under the ns of the knative-serving CR. However, if istio is installed under the non-default ns, knative operator will fail to configure, because this hardcoded Maybe, net-istio should remove this service?
@jakoberpf Your understanding of the doc is correct, would you do me a favor by verifying if the custom gateway works with the istio installed under "istio-system"? Let's first see if it works with the default ns. |
@houshengbo We began testing our operator configuration with a default istio install, which it did work with. We only then encountered these network issues when deploying on a running cluster with a custom istio namespace. So to my current knowledge the custom namespace induced this issue. |
@jakoberpf It should work with non-default ns of istio. We really need to fix this issue.
We used to install this resource also under the ns of the knative-serving CR, but later we have to pin it to the istio-system ns(cannot remember the reason, but I will take a look). However, if istio installs under a random ns, how can knative operator know it? Maybe the knative serving CR need a field to get the istio ns? I am also thinking of whether the above resource can stay out of the net-istio. |
@houshengbo I actually was looking for a field on the serving cr to point the operator to the namespace where we istio is running. So the idea to add this seems natural to me. Should I provide additional logs to further define the cause? |
@jakoberpf
Could you help me verify these? Thx. |
|
@jakoberpf
Without changing the schema of the serving CR, operator is able to look up the istio ns by checking |
Describe the bug
When we deploy the knative operator and set the custom
knative-ingress-gateway
to another gateway and namespace, the knative serving controller still looks for theistio-system
namespace and fails to get ready.operator log:
failed to apply non rbac manifest: namespaces \"istio-system\" not found
describe of KnativeServing:
Install failed with message: namespaces "istio-system" not found
Expected behavior
When setting the custom gateway, knative doesn't look for the gateway in
istio-system
, but the defined namespace for exampleservicemesh
.To Reproduce
Deploy istio in custom namespace and knative with the following configs.
Knative release version
Knative Operator: v0.21.0 - v0.22.0
Additional context
Serving Configuration:
If we have an obviously misconfiguration please point me out...
The text was updated successfully, but these errors were encountered: