liveBook · Manning

Gke-deploy

As explained in Google Anthos in Action

gke-deploy is a Cloud Build builder that deploys Kubernetes resources to Google Kubernetes Engine while applying Google-recommended practices.

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

How Google Anthos in Action covers it

How deep it goes
Defines the builder role and command arguments but does not explain deployment internals or Kubernetes resource behavior.
Examples
Uses a cloudbuild.yaml step with run, --filename, --location, and --cluster arguments.
What it assumes
Assumes a Cloud Build configuration, Kubernetes configuration file, deployment location, and GKE cluster.
What you can do after
Apply it via Cloud Build to deploy Kubernetes configuration to a named GKE cluster.
How it connects
Connects Cloud Build, Kubernetes resources, container images, container registries, and Google Kubernetes Engine.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Google Anthos in Action. The section links point to the parts of the book it draws on.