Forked from
DevOps (Lecture FB VI) / webservice
1 commit behind, 31 commits ahead of the upstream repository.
deploy.sh 772 B
#kubectl config current-context
#kubectl api-resources
#kubectl get pods
#init
kubectl config set-context --current --namespace=default
#tofu
tofu init
tofu plan
tofu apply
#connect
gcloud container clusters get-credentials devops24-autopilot-cluster --region europe-west1 --project bht-devops24-ss
#debug
kubectl get pods --output wide
kubectl get services --output wide
kubectl get ingress --output wide
kubectl describe pod devops24-webservice-deployment-c4d7b6876-28srq
#hop in
kubectl exec --stdin --tty devops24-webservice-deployment-c4d7b6876-28srq -- bash
#replace
kubectl delete pod devops24-webservice-deployment-c4d7b6876-28srq
kubectl get pods --watch
# get hello world
curl http://34.38.234.174/
curl http://34.38.234.174/health
#destroy
tofu destroy