Skip to content

Maintenance service to support maintenance mode

Hannes Heine requested to merge pr956head into pr956base

Created by: Tirokk

mattwr18 Authored by mattwr18 Merged


🍰 Pullrequest

Issues

@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

Screenshot at 2019-07-02 19:40:39

Then, I created a service kubectl --namespace=human-connection create service nodeport nginx --tcp=80:80

Screenshot at 2019-07-02 19:41:51

it's info: Screenshot at 2019-07-02 19:42:36

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...

Merge request reports