-
Notifications
You must be signed in to change notification settings - Fork 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 Chart - Global configuration in Helm values.yaml creates CrashLoopBackoff #1103
Comments
There is a mistake in the above error log. The real error log is this:
The output of
The NGINX instance seems to be looking for the incorrect resource name. |
Hi @bpoulse It's a bug in our helm chart. Thanks for reporting. We will fix it. In the meantime, you can try the following workarounds: if you install the helm chart from the sources. (1) Modify the following file to fix the issue: diff --git a/deployments/helm-chart/templates/controller-deployment.yaml b/deployments/helm-chart/templates/controller-deployment.yaml
index 4349141f..6b952d25 100644
--- a/deployments/helm-chart/templates/controller-deployment.yaml
+++ b/deployments/helm-chart/templates/controller-deployment.yaml
@@ -141,7 +141,7 @@ spec:
- -enable-tls-passthrough={{ .Values.controller.enableTLSPassthrough }}
- -enable-snippets={{ .Values.controller.enableSnippets }}
{{- if .Values.controller.globalConfiguration.create }}
- - -global-configuration=$(POD_NAMESPACE)/{{ .Release.Name }}
+ - -global-configuration=$(POD_NAMESPACE)/{{ include "nginx-ingress.name" . }}
{{- end }}
{{- end }}
- -ready-status={{ .Values.controller.readyStatus.enable }} (2) Install the chart using the modified sources:
Or alternatively, deploy a GlobalConfiguration resource without helm with the name |
Thanks for the reply and fix! Both options indeed work for the interim. |
Describe the bug
When using the globalConfiguration option in the Helm configuration file (i.e. values.yaml) in a more or less vanilla deployment of NGINX results in crashloop backoff.
To Reproduce
Steps to reproduce the behavior:
helm install cashew nginx-stable/nginx-ingress -f values.yaml -n default
kubectl get pods
kubectl logs <pod-name>
Content of
values.yaml
Expected behavior
Launch and open port 6379 for TransportServers
Your environment
Additional context
I am unsure if this is a template issue or my configuration of k8s.
The text was updated successfully, but these errors were encountered: