Skip to content

Commit 41d9352

Browse files
Update cni.md
1 parent 5573325 commit 41d9352

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/cni.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,20 +83,20 @@ Logs generated by `azure-vnet-ipam` plugin are available in `/var/log/azure-vnet
8383

8484
1. ssh into a master node
8585
```bash
86-
ssh username@masternodeipaddress
86+
$ ssh username@masternodeipaddress
8787
```
8888

8989
2. Cordon the agent nodes using below command
9090
```bash
91-
kubectl get nodes -o name | cut -d / -f 2 | xargs -I{} -n1 kubectl cordon {}
91+
$ kubectl get nodes -o name | cut -d / -f 2 | xargs -I{} -n1 kubectl cordon {}
9292
```
9393

9494
3. Upgrade all nodes one by one to v1.0.11 using the below command
9595
```bash
96-
kubectl get nodes -o name | cut -d / -f 2 | xargs -I{} -n1 ssh -tt {} -t 'wget -O /tmp/upgrade-cni.sh https://raw.githubusercontent.com/Azure/azure-container-networking/master/scripts/install-cni-plugin.sh; chmod 755 /tmp/upgrade-cni.sh; ls -l /tmp/upgrade-cni.sh; sudo /tmp/upgrade-cni.sh v1.0.11; echo 'upgraded node ' {}; echo 'sleeping for 5 seconds before moving on to next node... press ctrl-c if you want to abort'; sleep 5'
96+
$ kubectl get nodes -o name | cut -d / -f 2 | xargs -I{} -n1 ssh -tt {} -t 'wget -O /tmp/upgrade-cni.sh https://raw.githubusercontent.com/Azure/azure-container-networking/master/scripts/install-cni-plugin.sh; chmod 755 /tmp/upgrade-cni.sh; ls -l /tmp/upgrade-cni.sh; sudo /tmp/upgrade-cni.sh v1.0.11; echo 'upgraded node ' {}; echo 'sleeping for 5 seconds before moving on to next node... press ctrl-c if you want to abort'; sleep 5'
9797
```
9898
9999
4. Uncordon all agent nodes using below command
100100
```bash
101-
kubectl get nodes -o name | cut -d / -f 2 | xargs -I{} -n1 kubectl uncordon {}
101+
$ kubectl get nodes -o name | cut -d / -f 2 | xargs -I{} -n1 kubectl uncordon {}
102102
```

0 commit comments

Comments
 (0)