1- # Swiftv2 Cilium Upgrade Guide
1+ # Swiftv2 Cilium In-place Upgrade Guide
22
33## Steps
44### Clone repo + checkout branch for * .yamls
55```
66git clone https://github.com/Azure/azure-container-networking.git
7- git checkout jpayne3506/conflist-generation < TODO Change before merge >
7+ git checkout master
88```
99
1010### Update Conflist
11- Leverage a cni build from branch or use ` acnpublic.azurecr.io/azure-cni:linux-amd64-v1.7.5-3-g93d32acd0 ` < TODO Change before merge >
12- - This will install our chained conflist through the use of ` test/integration/manifests/cni/conflist-installer.yaml `
1311
1412```
1513export CONFLIST=azure-chained-cilium.conflist
1614export CONFLIST_PRIORITY=05
17- export CNI_IMAGE=acnpublic.azurecr.io/azure-cni:linux-amd64- v1.7.5-3-g93d32acd0
15+ export CNI_IMAGE=acnpublic.azurecr.io/public/containernetworking/ azure-cni:v1.7.5-3
1816envsubst '${CONFLIST},${CONFLIST_PRIORITY},${CNI_IMAGE}' < test/integration/manifests/cni/conflist-installer.yaml | kubectl apply -f -
1917```
2018
21- > NOTE: if your current conflist file name starts with ` 05 ` then change our previous filename to one with higher priority to ensure that it is consumed. i.e. ` 03-azure-chained-cilium.conflist `
2219
23-
24- ### Apply cilium config
20+ ### Apply Cilium config
2521```
2622export DIR=1.17
2723export CILIUM_VERSION_TAG=v1.17.7-250927
2824export CILIUM_IMAGE_REGISTRY=mcr.microsoft.com/containernetworking
2925kubectl apply -f test/integration/manifests/cilium/v${DIR}/cilium-config/cilium-chained-config.yaml
3026```
3127
32- - Remove ` kube-proxy-replacement-healthz-bind-address: "0.0.0.0:10256" ` from configmap if kube-proxy is current on nodes
3328
34- ### Apply cilium Agent + Operator + RBAC
29+ ### Apply Cilium Agent + Operator + RBAC
3530```
3631kubectl apply -f test/integration/manifests/cilium/v${DIR}/cilium-operator/files
3732kubectl apply -f test/integration/manifests/cilium/v${DIR}/cilium-agent/files
@@ -41,30 +36,11 @@ envsubst '${CILIUM_VERSION_TAG},${CILIUM_IMAGE_REGISTRY}' < test/integration/man
4136
4237
4338### Quick Summary
44- - Apply conflist installer to update conflist on BYON
45- - Apply/Edit Cilium Config with
46- - ` cni-chaining-mode: generic-veth `
47- - remove ` kube-proxy-replacement-healthz-bind-address `
48- - You do not need to remove if node does not have kube-proxy enabled
49- - If applied before agent is in ready state then no need to restart agent
39+ - Apply conflist installer to update conflist on all nodes
40+ - Apply Cilium Config
5041- Apply Agent + Operator + RBAC
5142
5243
5344## Quick Vaildation testing
54- - Create pods from deploy
55- - test/integration/manifests/swiftv2/mt-deploy.yaml
56- - Creates ` container-* ` pods on default namespace
57- - Create Cilium Network Policies
58- - test/integration/manifests/cilium/netpol/default-allow.yaml
59- - Will only allow cilium managed endpoints to transmit traffic through default namespace
6045- Check Cilium Management with
6146 - ` kubectl get cep -A `
62- - ` kubectl get cnp -A `
63- - Check connectivity
64- - exec -it <container-* > -- sh
65- - ip a
66- - look for delegatedNIC IP
67- - ping <IP >
68- - confirm CNP working by attempting to ping coredns pods
69- - should fail if both are being maintained by cilium
70- - confirm with ` kubectl get cep -A `
0 commit comments