Stopping and starting an Nginx web server
Stop and start the Nginx web server in the Kubernetes cluster.
Taking Nginx web server out of service
Procedure
From a Terminal session on the Kubernetes master, run the following command:
kubectl scale deploy fci-common-ui-nginx --replicas=0Output is similar
to the following:deployment.extensions/fci-common-ui-nginx scaledThis command
stops the Nginx web server and users cannot access FCI
via the Nginx web server. fci-common-ui-nginx-58d48d8f97-xxxxx is no longer
displayed in the kubectl get pods command output.
Putting Nginx web server back into service
Procedure
From a Terminal session on the Kubernetes master, run the following command:
kubectl scale deploy fci-common-ui-nginx --replicas=1Output is similar
to the
following:deployment.extensions/fci-common-ui-nginx scaledfci-common-ui-nginx-58d48d8f97-xxxxx
is displayed again in kubectl get pods command output.