Quick command snippets to interact with Kubernetes.
kubectl get pods selector app=somesystemkubectl get jobskubectl exec -it podname -- bashkubectl proxy -p 8123kubectl replace -f blahkubectl scale deployment appname replicas=3kubectl describe podnamekubectl port-forward kubectl get configmapskubectl get configmaps blah-config -o ymlkubectl delete pods --selector app=cardkubectl apply -f kube/deployment.ymlkubectl apply -f kube/test/config/configmap.ymlkubectl
kube create secret docker-registry gcr-registry --dry-run -o yaml --docker-server=https://gcr.io --docker-username=_json_key [email protected] --docker-password=(jq -c . gcp-service-account.json ) > gcr-registry.yml
kubeseal --format=yaml \
--cert=sealed-secrets-cert.pem \
< gcr-registry.yml \
> secret-gcr-registry.yml