Skip to content

Azure NPM troubleshooting guide

Yongli Chen edited this page Sep 26, 2019 · 12 revisions

Steps for updating Azure-NPM manually:

1. Save all network policies applied to your cluster

mkdir -p networkpolicies
kubectl get networkpolicy --no-headers=true --all-namespaces | sed -r 's/(\S+)\s+(\S+).*/kubectl --namespace \1 get networkpolicy \2 -o yaml --export > networkpolicies\/\2.yaml/e'

2. Delete all network policies applied to your cluster (Make sure you have saved them first!)

kubectl get networkpolicy --no-headers=true --all-namespaces | sed -r 's/(\S+)\s+(\S+).*/kubectl --namespace \1 delete networkpolicy \2/e'

3. Update Azure-NPM daemonset

kubectl delete ds azure-npm -n kube-system --grace-period=0 --force && \
kubectl apply -f https://raw.githubusercontent.com/Azure/azure-container-networking/master/npm/azure-npm.yaml

Azure Container Networking

Clone this wiki locally