-
Deploy the Deployment and Service by running the following command:
kubectl create -f ./ --save-config --record -
Run
kubectl get alland notice that 4 Pods, 1 Deployment, and 1 ReplicaSet have successfully been deployed. -
Open a separate command window and run one of the following scripts based on your OS to call into the nginx Pods:
Windows (open a PowerShell window):
./curl-loop.ps1Mac
sh curl-loop.sh -
Change the image version in
nginx.deployment.ymlto the one shown in the comment right next to it. Save the file. -
Run the following command to apply the new Deployment:
kubectl apply -f nginx.deployment.yml --record -
Go back and check the curl commands being made by the script and you should see no interuption in the service. This demonstrates a Rolling Deployment in action.
-
Check the Deployment status by running the following:
kubectl rollout status deployment my-nginx
rolling-update
Directory actions
More options
Directory actions
More options
rolling-update
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||