You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Kubernetes platform (e.g. Google Kubernetes Engine)
Self-hosted k3s
Describe the bug
{
"level":"error",
"ts":"2024-02-17T19:03:27.056Z",
"logger":"triggerset.http_trigger_set",
"caller":"router/ingress.go:48",
"msg":"failed to create ingress",
"error":"ingresses.networking.k8s.io is forbidden: User \"system:serviceaccount:fission:fission-router\" cannot create resource \"ingresses\" in API group \"networking.k8s.io\" in the namespace \"fission\"","stacktrace":"github.com/fission/fission/pkg/router.createIngress\n\tpkg/router/ingress.go:48"
}
fission-router has access to create ingress in default namespace, but it try to create it in fission namespace.
k describe role fission-router
Name: fission-router
Labels: app.kubernetes.io/managed-by=Helm
Annotations: meta.helm.sh/release-name: fission
meta.helm.sh/release-namespace: fission
PolicyRule:
Resources Non-Resource URLs Resource Names Verbs
--------- ----------------- -------------- -----
ingresses.networking.k8s.io [] [] [create get list watch update patch delete]
customresourcedefinitions.apiextensions.k8s.io [] [] [get list watch]
I'm also seeing this. I was expecting the ingress to be created in the same namespace as the HttpTrigger, but instead it's being added to the fission namespace. Looking at the CRD there seems to be no way of specifying the ingress namespace.
Can the default be changed to match the namespace of the HttpTrigger, and also an option be added to the CRD for overriding?
As a workaround, it seems you can apply the below after helm install, which is just the fission-all/templates/router/role-kubernetes.yaml from the helm chart, with the namespace on each object changed from default to fission. The ingresses get created in fission namespace but they do work.
Fission/Kubernetes version
Kubernetes platform (e.g. Google Kubernetes Engine)
Describe the bug
fission-router has access to create ingress in default namespace, but it try to create it in fission namespace.
To Reproduce
Expected result
Ingress in default namespace
Actual result
Screenshots/Dump file
Additional context
The text was updated successfully, but these errors were encountered: