-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
helm, --namespace with --tcp-services-configmap. #7159
Comments
/area helm |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
NGINX Ingress controller version:
Helm chart version:
version: 3.23.0
ingress-nginx:
0.44.0
Kubernetes version (use
kubectl version
):Server Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.10", GitCommit:"98d5dc5d36d34a7ee13368a7893dcb400ec4e566", GitTreeState:"clean", BuildDate:"2021-04-15T03:20:25Z", GoVersion:"go1.15.10", Compiler:"gc", Platform:"linux/amd64"}
Environment:
NA.
What happened:
We upgraded a cluster from stable/nginx-ingress:
chart version: 1.34.2
to the ingress-nginx chart.
There is a problem that we cant work around now.
We typically setup an ingress-nginx instance that is namespaced to a particular namespace for each project.
When using the newer chart, it can not find the configmap, as its only watching for the namespaced one, not the namespace the ingress controller is in.
In the older chart, it would load a configmap for TCP proxying into the release namespace but then configure the ingress-controller to look for it in the namespace flagged name:
https://github.com/helm/charts/blob/master/stable/nginx-ingress/templates/controller-deployment.yaml#L105
via {{ default .Release.Namespace .Values.controller.tcp.configMapNamespace }}
But now in upstream ingress-nginx, it does not support that as a workaround:
https://github.com/kubernetes/ingress-nginx/blob/master/charts/ingress-nginx/templates/controller-deployment.yaml#L89
it hardcodes $(POD_NAMESPACE)
What you expected to happen:
Ideally, when using tcp and namespace, things should "just work". But it fails due to the watch on namespace.
Either ingress-nginx needs to watch the namespace the --tcp-services-configmap points at in addition to --namespace, or the namespace passed to --tcp-services-configmap in the chart needs to be overridable so it can be set to the same thing as --namespace.
How to reproduce it:
helm install with these values into the namespace named test-admin
Look at the ingress logs, and it will complain about not being able to find the configmap.
The commented out values were our workaround to get it to work on the older chart.
/kind bug
The text was updated successfully, but these errors were encountered: