This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kubectl get pods --all-namespaces -o jsonpath="{.items[*].spec.containers[*].image}" |\ | |
tr -s '[[:space:]]' '\n' |\ | |
sort |\ | |
uniq |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!bin/bash | |
# https://kubernetes.io/blog/2021/05/14/using-finalizers-to-control-deletion/ | |
RESOURCES=$(kubectl get ns --no-headers -o custom-columns=":metadata.name") | |
for n in $RESOURCES | |
do | |
kubectl patch ns $n \ | |
--type json \ | |
--patch='[ { "op": "remove", "path": "/metadata/finalizers" } ]' | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://spinnaker.io/docs/guides/runbooks/orca-zombie-executions/ | |
# Forward Orca API traffic locally | |
kubectl port-forward service/spin-orca 8083:8083 | |
# Cancel execution with Orca admin API | |
curl -X PUT \ | |
"http://localhost:8083/admin/forceCancelExecution?executionId=<Pipeline ID>&executionType=PIPELINE" |