gcloud container clusters get-credentials <cluster_name> --zone europe-central2-a --project <project_id>
kubectl describe nodes
- test whether it works
kubectl config set-context --current --namespace=<name_space>
- change namespacekubectl describe pods
- debug all pods for actual namespacekubectl logs <pod_id>
- get logs for podkubectl apply -f . --validate=false
- update/init instance for actual folderkubectl set image deployment/foodadvisor-backend foodadvisor-api=foodadvisor-api:latest
- update istancekubectl top pod <pod_id> --containers
- show uses recorces by podskubectl exec -it <pod_id> /bin/bash
- exec bash for concret pods
Install tf to prepare cluster for gcp https://learn.hashicorp.com/tutorials/terraform/install-cli
cd tf
terraform init
terraform plan
terraform apply
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.1.0/deploy/static/provider/cloud/deploy.yaml