Maintenance service to support maintenance mode
Created by: Tirokk
Authored by mattwr18 Merged
🍰 Pullrequest
Issues
- fixes #906 (closed)
@roschaefer, so far this is what I have done... I'm sure I've made some mistakes, but at least this is a start and maybe we can get it figured out together?
following the docs here: https://www.linode.com/docs/applications/containers/how-to-deploy-nginx-on-a-kubernetes-cluster/#deploy-nginx-on-the-kubernetes-cluster
I created a deployment with kubectl --namespace=human-connection create deployment nginx --image=nginx
Then, I created a service kubectl --namespace=human-connection create service nodeport nginx --tcp=80:80
I then copied the service-web.yaml
and changed the selector like it says here: https://www.nrmitchi.com/2017/11/easy-maintenance-mode-in-kubernetes/, but I noticed that the label doesn't match for example and also maybe the service should be named maintenance
, as above.
Also, I had a doubt about this line This isolated service contains only an nginx container, with our generic Maintenance page preloaded.
...
If I am not mistaken the nginx container exists now, but how can I preload a maintenance page? With apply
and some config? sshing into the nginx container and creating it?
Just a start...