A collection of helpful kubernetes related commands.
kubectl config set-context --current --namespace=example
kubectl get events --sort-by=.metadata.creationTimestamp -w
kubectl rollout restart deployment/example
kubectl scale --replicas=3 deployment/example
kubectl scale --replicas=0 deployment/example
kubectl delete pods --field-selector status.phase!=Running --all-namespaces
using hashicorp/vault for examples
helm repo add hashicorp https://helm.releases.hashicorp.com
helm repo update
helm inspect values hashicorp/vault > values.yaml
helm install vault hashicorp/vault -f values.yaml
helm uninstall vault