Google Cloud (GKE)
1. Create GKE Cluster
Section titled “1. Create GKE Cluster”gcloud container clusters create justapi-cluster \ --zone us-central1-a \ --num-nodes 3 \ --machine-type e2-standard-22. Get Credentials
Section titled “2. Get Credentials”gcloud container clusters get-credentials justapi-cluster --zone us-central1-a3. Install NGINX Ingress Controller
Section titled “3. Install NGINX Ingress Controller”kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/deploy/static/provider/cloud/deploy.yaml4. Install cert-manager
Section titled “4. Install cert-manager”kubectl apply -f https://github.com/cert-manager/cert-manager/releases/latest/download/cert-manager.yaml5. Build and Push to GCR
Section titled “5. Build and Push to GCR”docker build -t gcr.io/$PROJECT_ID/justapi-app:latest .docker push gcr.io/$PROJECT_ID/justapi-app:latest6. Deploy with Helm
Section titled “6. Deploy with Helm”helm upgrade --install my-app justapi/justapi \ --set image.repository=gcr.io/$PROJECT_ID/justapi-app \ --set image.tag=latest \ --set ingress.enabled=true \ --set ingress.host=api.example.comSee Also
Section titled “See Also”- Amazon EKS — Deploy on AWS
- Azure AKS — Deploy on Azure
- Kubernetes / Helm — Helm chart reference