Skip to content

Commit d0369b1

Browse files
Kalyan Reddy DaidaKalyan Reddy Daida
authored andcommitted
Welcome to Stack Simplify
1 parent ffb40e2 commit d0369b1

File tree

1 file changed

+24
-3
lines changed
  • 04-Deployments-with-kubectl/04-04-Pause-and-Resume-Deployment

1 file changed

+24
-3
lines changed

04-Deployments-with-kubectl/04-04-Pause-and-Resume-Deployment/README.md

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- We are going to update our Application Version from **V3 to V4** as part of learning "Pause and Resume Deployments"
77

88
## Step-01: Pausing & Resuming Deployments
9+
### Check current State of Deployment & Application
910
```
1011
# Check the Rollout History of a Deployment
1112
kubectl rollout history deployment/my-first-deployment
@@ -16,9 +17,12 @@ kubectl get rs
1617
Observation: Make a note of number of replicaSets present.
1718
1819
# Access the Application
19-
http://<node1-public-ip>:<Node-Port>
20+
http://<worker-node-ip>:<Node-Port>
2021
Observation: Make a note of application version
22+
```
2123

24+
### Pause Deployment and Two Changes
25+
```
2226
# Pause the Deployment
2327
kubectl rollout pause deployment/<Deployment-Name>
2428
kubectl rollout pause deployment/my-first-deployment
@@ -36,7 +40,9 @@ Observation: No new replicaSet created. We should have same number of replicaSet
3640
3741
# Make one more change: set limits to our container
3842
kubectl set resources deployment/my-first-deployment -c=kubenginx --limits=cpu=200m,memory=512Mi
39-
43+
```
44+
### Resume Deployment
45+
```
4046
# Resume the Deployment
4147
kubectl rollout resume deployment/my-first-deployment
4248
@@ -47,8 +53,23 @@ Observation: You should see a new version got created
4753
# Get list of ReplicaSets
4854
kubectl get rs
4955
Observation: You should see new ReplicaSet.
50-
56+
```
57+
### Access Application
58+
```
5159
# Access the Application
5260
http://<node1-public-ip>:<Node-Port>
5361
Observation: You should see Application V4 version
5462
```
63+
64+
65+
## Step-02: Clean-Up
66+
```
67+
# Delete Deployment
68+
kubectl delete deployment my-first-deployment
69+
70+
# Delete Service
71+
kubectl delete svc my-first-deployment-service
72+
73+
# Get all Objects from Kubernetes default namespace
74+
kubectl get all
75+
```

0 commit comments

Comments
 (0)