deploy-app-to-a-gke-cluster
Code to deploy an app to a GKE cluster
Steps
- Define environment variables:
PROJECT_ID
,LOCATION
,REPO_NAME
- Set current workspace:
make set-current-workspace
- Create Artifact Registry Repository:
make create-artifact-registry-repo
- Build Container Image:
make build-container-image
- Kubernetes Deployment:
kubectl apply -f deployment.yaml
- Kubernetes Service:
kubectl apply -f service.yaml