Skip to content

Instantly share code, notes, and snippets.

@besteban1989
Last active August 24, 2022 14:58
Show Gist options
  • Save besteban1989/9dbe94375d0aef103b5dfa5211bffe86 to your computer and use it in GitHub Desktop.
Save besteban1989/9dbe94375d0aef103b5dfa5211bffe86 to your computer and use it in GitHub Desktop.
Pod identity troubleshooting
# Delete pod identity
AADVERSION='v1.6.3'
kubectl delete -f https://raw.githubusercontent.com/Azure/aad-pod-identity/$AADVERSION/deploy/infra/deployment-rbac.yaml
# If the previous command get stuck, open an additional tab and run the following command
kubectl get azureassignedidentity -A -o=json | jq '.items[].metadata.finalizers=null' | kubectl apply -f -
kubectl delete -f https://raw.githubusercontent.com/Azure/aad-pod-identity/$AADVERSION/deploy/infra/mic-exception.yaml
# Install pod identity
kubectl apply -f https://raw.githubusercontent.com/Azure/aad-pod-identity/$AADVERSION/deploy/infra/deployment-rbac.yaml
kubectl apply -f https://raw.githubusercontent.com/Azure/aad-pod-identity/$AADVERSION/deploy/infra/mic-exception.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment