Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 711 Bytes

commands_cheat.md

File metadata and controls

36 lines (25 loc) · 711 Bytes
helm install k8s-app k8s-gcp-chart
helm upgrade k8s-app k8s-gcp-chart
helm uninstall k8s-app

Get running k8 pods

kubectl get pods --field-selector=status.phase==Running

Delete and recreate a pod

kubectl delete pod db-pod && kubectl create -f db_kube.yml

Save image to tar to be used in microk8s

docker save k8app-backend-image:1.1 > k8app-backend-image.tar

Restart deployments

kubectl rollout restart deployments.apps/db
kubectl rollout restart deployments.apps/frontend
kubectl rollout restart deployments.apps/backend

microk8s enable ingress:default-ssl-certificate=default/frontend-tls-secret

# restart everything
kubectl delete -f .;kubectl apply -f .