May 2018
Intermediate to advanced
554 pages
13h 51m
English
For a later demonstration, we are going to update nginx Pods . Please make sure all Kubernetes nodes and components are working healthily:
// check components$ kubectl get cs// check nodes$ kubectl get node
Furthermore, to well understand the relationship between ReplicaSet and Deployment, please check Deployment API section in Chapter 2, Walking through Kubernetes Concepts.
To illustrate the updating of the containers in Kubernetes system, we will create a Deployment, change its configurations of application, and then check how the updating mechanism handles it. Let's get all our resources ready:
// create a simple nginx Deployment with specified labels$ kubectl run simple-nginx --image=nginx --port=80 --replicas=5 --labels="project=My-Happy-Web,role=frontend,env=test" ...
Read now
Unlock full access