Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Arshad Siddique authored and Arshad Siddique committed Jun 17, 2024
1 parent b1d8a8d commit c5d8656
Showing 1 changed file with 97 additions and 0 deletions.
97 changes: 97 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,111 @@ terraform apply
```

### 8. To get the status of the rollouts
As we have already set the canary-weight to 20%.
80% traffic will go to the primary and rest 20% to the canary.

```bash
kubectl argo rollouts get rollout rollouts-demo

Name: rollouts-demo
Namespace: default
Status: ॥ Paused
Message: CanaryPauseStep
Strategy: Canary
Step: 1/2
SetWeight: 20
ActualWeight: 20
Images: argoproj/rollouts-demo:blue (canary)
argoproj/rollouts-demo:green (stable)
Replicas:
Desired: 4
Current: 5
Updated: 1
Ready: 5
Available: 5

NAME KIND STATUS AGE INFO
⟳ rollouts-demo Rollout ॥ Paused 38s
├──# revision:2
│ └──⧉ rollouts-demo-687d76d795 ReplicaSet ✔ Healthy 36s canary
│ └──□ rollouts-demo-687d76d795-5thkd Pod ✔ Running 36s ready:1/1
└──# revision:1
└──⧉ rollouts-demo-7d9c645dbb ReplicaSet ✔ Healthy 38s stable
├──□ rollouts-demo-7d9c645dbb-4t6j6 Pod ✔ Running 38s ready:1/1
├──□ rollouts-demo-7d9c645dbb-6fhph Pod ✔ Running 38s ready:1/1
├──□ rollouts-demo-7d9c645dbb-qqpt2 Pod ✔ Running 38s ready:1/1
└──□ rollouts-demo-7d9c645dbb-x6lm5 Pod ✔ Running 38s ready:1/1
```

### 9. To promote a rollout
It will promote canary to the stable release and the traffic to the canary will be set to 0%

```bash
kubectl argo rollouts promote rollouts-demo
```
It will show: rollout 'rollouts-demo' promoted
```bash
❯ kubectl argo rollouts get rollout rollouts-demo
Name: rollouts-demo
Namespace: default
Status: ✔ Healthy
Strategy: Canary
Step: 2/2
SetWeight: 100
ActualWeight: 100
Images: argoproj/rollouts-demo:blue (stable)
argoproj/rollouts-demo:green
Replicas:
Desired: 4
Current: 8
Updated: 4
Ready: 8
Available: 8

NAME KIND STATUS AGE INFO
⟳ rollouts-demo Rollout ✔ Healthy 2m36s
├──# revision:2
│ └──⧉ rollouts-demo-687d76d795 ReplicaSet ✔ Healthy 2m34s stable
│ ├──□ rollouts-demo-687d76d795-5thkd Pod ✔ Running 2m34s ready:1/1
│ ├──□ rollouts-demo-687d76d795-8wgqg Pod ✔ Running 4s ready:1/1
│ ├──□ rollouts-demo-687d76d795-fpnvv Pod ✔ Running 4s ready:1/1
│ └──□ rollouts-demo-687d76d795-frcwf Pod ✔ Running 4s ready:1/1
└──# revision:1
└──⧉ rollouts-demo-7d9c645dbb ReplicaSet ✔ Healthy 2m36s delay:26s
├──□ rollouts-demo-7d9c645dbb-4t6j6 Pod ✔ Running 2m36s ready:1/1
├──□ rollouts-demo-7d9c645dbb-6fhph Pod ✔ Running 2m36s ready:1/1
├──□ rollouts-demo-7d9c645dbb-qqpt2 Pod ✔ Running 2m36s ready:1/1
└──□ rollouts-demo-7d9c645dbb-x6lm5 Pod ✔ Running 2m36s ready:1/1
```
Again Check the status of the rollout, the previous rollout will be scaled down after the canary is promoted.
```bash
❯ kubectl argo rollouts get rollout rollouts-demo
Name: rollouts-demo
Namespace: default
Status: ✔ Healthy
Strategy: Canary
Step: 2/2
SetWeight: 100
ActualWeight: 100
Images: argoproj/rollouts-demo:blue (stable)
Replicas:
Desired: 4
Current: 4
Updated: 4
Ready: 4
Available: 4

NAME KIND STATUS AGE INFO
⟳ rollouts-demo Rollout ✔ Healthy 4m24s
├──# revision:2
│ └──⧉ rollouts-demo-687d76d795 ReplicaSet ✔ Healthy 4m22s stable
│ ├──□ rollouts-demo-687d76d795-5thkd Pod ✔ Running 4m22s ready:1/1
│ ├──□ rollouts-demo-687d76d795-8wgqg Pod ✔ Running 112s ready:1/1
│ ├──□ rollouts-demo-687d76d795-fpnvv Pod ✔ Running 112s ready:1/1
│ └──□ rollouts-demo-687d76d795-frcwf Pod ✔ Running 112s ready:1/1
└──# revision:1
└──⧉ rollouts-demo-7d9c645dbb ReplicaSet • ScaledDown 4m24s
```

## Clean Up

Expand Down

0 comments on commit c5d8656

Please sign in to comment.