-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
nginx-ingress-controller not updating configuration #794
Comments
@2color please update to 0.9.0-beta.7 |
@aledbf Will try that. |
@aledbf I updated to Interestingly, the ingresses that are already defined prior to starting the |
@2color what kubernetes version are you using? Are you setting limits to the ingress controller (ram, cpu)? |
Using 1.6.1 running on GKE. This is the definition for the ingress controller
|
@2color I don't see the rbac configuration (not sure if that is enabled in gke) |
@2color please check if the image |
I am seeing a similar issue, I upgraded from my patched beta.5 from #696 to beta.7 and I am seeing 502s after deploys. In particular, I can verify that after a Deployment has spun up a new ReplicaSet matching the appropriate Service selector, Endpoints have been populated for the new PodIPs, but the upstream block in the nginx.conf continues to have the PodIP of the previous ReplicaSet's pod(s) even though those Pods have terminated Rolling back fixes; I believe that deleting the nginx-ingress pods also has replacements come up with an initially valid config but not track new changes Of likely relevance, I am still working against 1.5 apiserver and kubelets. |
@aledbf |
@aledbf I am also seeing the same issue as @donaldguy, I tried that image, but it does not appear to work with proxy-protocol |
Also having this issue. Kubernetes 1.6.4 using Canal networking, installed with kops. I have to kill each nginx-ingress pod before it'll pick up new services. kind: DaemonSet
apiVersion: extensions/v1beta1
metadata:
name: ingress-nginx
namespace: kube-ingress
labels:
k8s-app: nginx-ingress-controller
k8s-addon: ingress-nginx.addons.k8s.io
spec:
template:
metadata:
labels:
app: ingress-nginx
k8s-app: nginx-ingress-controller
k8s-addon: ingress-nginx.addons.k8s.io
annotations:
prometheus.io/port: '10254'
prometheus.io/scrape: 'true'
spec:
terminationGracePeriodSeconds: 60
serviceAccountName: nginx-ingress-controller
containers:
- image: gcr.io/google_containers/nginx-ingress-controller:0.9.0-beta.7
name: nginx-ingress-controller
imagePullPolicy: Always
ports:
- name: http
containerPort: 80
protocol: TCP
- name: https
containerPort: 443
protocol: TCP
readinessProbe:
httpGet:
path: /healthz
port: 10254
scheme: HTTP
livenessProbe:
httpGet:
path: /healthz
port: 10254
scheme: HTTP
initialDelaySeconds: 30
timeoutSeconds: 5
env:
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
args:
- /nginx-ingress-controller
- --default-backend-service=$(POD_NAMESPACE)/nginx-default-backend
- --configmap=$(POD_NAMESPACE)/ingress-nginx
- --publish-service=$(POD_NAMESPACE)/ingress-nginx
|
Closing. This issue is fixed in the image quay.io/aledbf/nginx-ingress-controller:0.132 (current master) |
@aledbf Thanks! Any idea when the next beta release will be out with the fix? |
@jordanjennings after we fixed all this :) https://github.com/kubernetes/ingress/projects/3 |
Thanks @aledbf |
Hi guys, is the fix part of the beta 10 image? I have just deployed the beta10 image on my cluster and I'm having the exact same problem as described here. |
@stibi yes. Please open a new issue if you see this in 0.9-beta.10 |
hi please take care of the indention of yaml! |
Problem
I'm experiencing problems with nginx-ingress-controller not updating the nginx configuration even though it logs the ingress events.
I’m using
gcr.io/google_containers/nginx-ingress-controller:0.9.0-beta.6
Debug info
When viewing the logs for the ingress controller I see the following:
But the ingress controller is not logging any configuration update.
Normally I see this being logged:
I0529 16:33:32.984297 9 controller.go:427] ingress backend successfully reloaded...
However that's not being logged in this case.
when looking at the generated config with the following command:
kubectl exec -it --namespace kube-system nginx-ingress-controller-7d7wg cat /etc/nginx/nginx.conf
The configuration does not contain the expected changes from the ingress definition.
Attempted fixes
deleting the ingress and applying it again
This resulted in this line being logged. Still no configuration change
Logs after deleting:
After re-applying:
Still no changes to the generated nginx configuration.
The text was updated successfully, but these errors were encountered: