Skip to content

Google Cloud (GKE)

Terminal window
gcloud container clusters create justapi-cluster \
--zone us-central1-a \
--num-nodes 3 \
--machine-type e2-standard-2
Terminal window
gcloud container clusters get-credentials justapi-cluster --zone us-central1-a
Terminal window
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/deploy/static/provider/cloud/deploy.yaml
Terminal window
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/latest/download/cert-manager.yaml
Terminal window
docker build -t gcr.io/$PROJECT_ID/justapi-app:latest .
docker push gcr.io/$PROJECT_ID/justapi-app:latest
Terminal window
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.com