gke-deploy is a Google-supported Cloud Build builder for deploying Kubernetes resources to Google Kubernetes Engine (GKE) while applying Google-recommended practices. section 12.4.3
Use it as a containerized deployment step in a Cloud Build pipeline:
- Select the gke-deploy builder image. section 12.4.3
- Run the deploy command with a Kubernetes configuration file, location, and GKE cluster. section 12.4.3
- Place deployment after image build and registry-push steps when the pipeline produces a new container image. section 12.4.3
Cloud Build deployment step
steps: - name: "gcr.io/cloud-builders/gke-deploy" args: - run - --filename=[kubernetes-config-file] - --location=[location] - --cluster=[cluster] section 12.4.3
steps: ... # deploy container image to GKE - name: "gcr.io/cloud-builders/gke-deploy" args: - run - --filename=[kubernetes-config-file] - --location=[location] - --cluster=[cluster]
Inspect the deployment-step configuration and its required target parameters. section 12.4.3
