lukohep
lukohep

Reputation: 147

Kubernetes how to make Deployment to update image auto CI/CD

I am using gcp and kubernetes.

I have gcp repository and container registry.

I have a trigger for build container after pushing into the master branch.

I don't know how to set some auto-trigger to deploy new version of the container (docker file).

How can I automate the build process?

Upvotes: 2

Views: 822

Answers (2)

Patrick W
Patrick W

Reputation: 4909

There are two solutions here.

  1. You can expand the build step. Cloud Build can also push changes to your GKE cluster. You can read more about this here

  2. What you currently have is a solid CI pipeline, for the CD, you can use Spinnaker for GCP, which was released recently. This integrates well with GCE, GKE and GAE and allows you to automate the CD portion.

Upvotes: 0

wolmi
wolmi

Reputation: 1719

You need some extra pieces to do it, for example if you use Helm to package your deployment you can use Flux to trigger the automated deployment.

https://helm.sh/

https://fluxcd.github.io/flux/

Upvotes: 2

Related Questions