Force delete a pod [source]
kubectl delete pod <PODNAME> --grace-period=0 --force --namespace <NAMESPACE>
Force delete a pod [source]
kubectl delete pod <PODNAME> --grace-period=0 --force --namespace <NAMESPACE>
#!/bin/bash | |
# | |
# usage: ./volumeInspector.sh <pvc-name> <namespace> | |
# | |
# creates a temporary pod that can be use to inspect the contents | |
# of a pvc. the pvc is mounted in the /data directory. | |
# | |
# |
words = ["Alphabet", "aardvark", "anarchy", "purple", "apple", "avalanche", "potato"] | |
counts = [] | |
words.each do |word| | |
letters = word.split("") | |
count = 0 | |
letters.each do |letter| | |
if letter == "A" || letter == "a" | |
count = count + 1 | |
end | |
end |