Updating a status label

Note: You should not manage Replica Sets owned by a Deployment.

updating a status label-84

The current replicas indicates the total replicas this Deployment manages, and the available replicas indicates the number of current replicas that are available.

We can run kubectl get pods NAME READY STATUS RESTARTS AGE nginx-deployment-1564180365-khku8 1/1 Running 0 14s nginx-deployment-1564180365-nacti 1/1 Running 0 14s nginx-deployment-1564180365-z9gth 1/1 Running 0 14s Next time we want to update these Pods, we only need to update the Deployment’s pod template again.

In a future version of Kubernetes, the defaults will change from 1-1 to 25%-25%.

For example, if you look at the above Deployment closely, you will see that it first created a new Pod, then deleted some old Pods and created new ones.

Deployment can also ensure that only a certain number of Pods may be created above the desired number of Pods.

By default, it ensures that at most 1 more than the desired number of Pods are up (1 max surge).

Deployment can ensure that only a certain number of Pods may be down while they are being updated.

By default, it ensures that at least 1 less than the desired number of Pods are up (1 max unavailable).

In addition, serving sizes have gotten larger, reflecting the reality of Americans' eating habits.

Tags: , ,