-
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
Controllers and Leader Election #105
Comments
@rikatz you can disable the status removing this https://github.com/kubernetes/ingress/blob/master/core/pkg/ingress/controller/controller.go#L265 The error you post is not related to the status, just that |
@aledbf You're right, the error is not related to the sync. The error is related to controller not being able to get a default SSL certificate. I've created a new secret on the same namespace of configmap and default-backend-service, and configured it's argument. About disabling the status, I understand that I can lose this when running as a Bare Metal (and not a contianer inside kubernetes), but I can't figure out another way to report this status. Probably we're going to migrate this inside k8s cluster in the future, but anyway I think it's great that I can run the program inside and outside a cluster. So, do I leave this issue opened until this is a configurable option? Or should I close this? Thanks!! |
Just in case I'm running this ingress controller without issues (the status reports the IP of the node where is running the pod) |
Leave the issue open so I don't forget to add the flag :) |
OK. If it's just about creating a flag, and making an 'if' statement in the location you've mentioned before, I can do this tomorrow and make a PR. I just don't know if there's impact in other parts of the ingress controller. |
I was using the old repo 'github.com/kubernetes/contrib/ingress' and am migrating now for this one.
We use ingress controllers on physical servers (not inside containers running on Kubernetes).
In the contrib version, was possible to use this without any great change (like, install NGINX, copy template, create directories, and run the binary with a kubeconfig file, like this:
Using this version is not possible, as it appears the core package expects some leader election, that depends on a POD_NAME and/or POD_NAMESPACE environment variable.
I've tried to comment out the 'status' block on the code, so there is no leader election. It worked fine, until it tries to sync the tls secret from each ingress controller, as the following:
So, I don't know if that's possible to (as other kubernetes components) insert a flag that you can ignore the leader election, so this new ingress controller have the same behaviour as the previous one.
Thanks!
The text was updated successfully, but these errors were encountered: