kubectl
Installation
Linux
curl -LO "https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl"
chmod +x ./kubectl && sudo mv ./kubectl /usr/local/bin/kubectl
Delete all the failed pods
kubectl delete pods -A --field-selector=status.phase=Failed
Apply label to Kubernetes Resources
kubectl label [resourcetype] [resourcename] -n [namespace] mylabel=myvalue mylabel2=myvalue2
Remove label from Kubernetes Resources
kubectl label [resourcetype] [resourcename] -n [namespace] mylabel-