-
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
Add health check location #100
Add health check location #100
Conversation
@jmastr Thanks! Any reason you chose the default type as |
2279a91
to
811e684
Compare
@pleshakov It was for debugging only. I wanted to stop my browser downloading "healthy\n" all the time. I removed those lines. |
@jmastr Could you add it again as the |
Ideally, this feature should be a part of a bigger feature (the default server) that solves nginxinc#52. For now, we add the "-health-status" parameter to the controller. If it is present, the default server listening on port 80 with the health check location "/nginx-health" gets added to the main nginx configuration. Closes nginxinc#90
811e684
to
4e5661c
Compare
@pleshakov Sure. Pushed it. But it is the default anyways, isn't it? |
@jmastr Great! The default is |
@pleshakov I am just curious, am I looking in the wrong place: http://nginx.org/en/docs/http/ngx_http_core_module.html#default_type? |
@jmastr That's correct. Sorry for the confusion. However, this default is overwritten by this line https://github.com/nginxinc/kubernetes-ingress/blob/master/nginx-controller/nginx/nginx.conf.tmpl#L16, which becomes the default :) |
@pleshakov Thanks for the explanation. Everything looks good to me now. |
@pleshakov btw. I am just preparing my talk about Ingress and NGINX Ingress Controller for tonight's Kubernetes meetup. Told you about it: https://www.meetup.com/Berlin-Kubernetes-Meetup/events/235968196/ |
@jmastr Awesome! Good luck! :) |
@jmastr How did your talk go? |
@pleshakov It went very well. The people were pretty interested. I could have talked a lot longer about that topic. There was one guy already, who manages 100+ vhosts with the NGINX Ingress Controller. Keep up the good work! |
@jmastr Glad it went very well! thx! |
@jmastr I know this isn't yet ready for public consumption, but I did try it. I've tried adding |
@georgecrawford I did not test it with configmaps indeed, so the probability that it is a bug is quite high. |
Ideally, this feature should be a part of a bigger feature (the default
server) that solves #52.
For now, we add the "-health-status" parameter to the controller. If
it is present, the default server listening on port 80 with the health
check location "/nginx-health" gets added to the main nginx
configuration.
Closes #90