6
6
- We are going to update our Application Version from ** V3 to V4** as part of learning "Pause and Resume Deployments"
7
7
8
8
## Step-01: Pausing & Resuming Deployments
9
+ ### Check current State of Deployment & Application
9
10
```
10
11
# Check the Rollout History of a Deployment
11
12
kubectl rollout history deployment/my-first-deployment
@@ -16,9 +17,12 @@ kubectl get rs
16
17
Observation: Make a note of number of replicaSets present.
17
18
18
19
# Access the Application
19
- http://<node1-public -ip>:<Node-Port>
20
+ http://<worker-node -ip>:<Node-Port>
20
21
Observation: Make a note of application version
22
+ ```
21
23
24
+ ### Pause Deployment and Two Changes
25
+ ```
22
26
# Pause the Deployment
23
27
kubectl rollout pause deployment/<Deployment-Name>
24
28
kubectl rollout pause deployment/my-first-deployment
@@ -36,7 +40,9 @@ Observation: No new replicaSet created. We should have same number of replicaSet
36
40
37
41
# Make one more change: set limits to our container
38
42
kubectl set resources deployment/my-first-deployment -c=kubenginx --limits=cpu=200m,memory=512Mi
39
-
43
+ ```
44
+ ### Resume Deployment
45
+ ```
40
46
# Resume the Deployment
41
47
kubectl rollout resume deployment/my-first-deployment
42
48
@@ -47,8 +53,23 @@ Observation: You should see a new version got created
47
53
# Get list of ReplicaSets
48
54
kubectl get rs
49
55
Observation: You should see new ReplicaSet.
50
-
56
+ ```
57
+ ### Access Application
58
+ ```
51
59
# Access the Application
52
60
http://<node1-public-ip>:<Node-Port>
53
61
Observation: You should see Application V4 version
54
62
```
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