0

I am using kubernetes. I can do docker builds from GitHub and upload them to docker hub on our own. However, I would like to automate the creation and updating of pods. How about Circle CI for example?

Or is it possible to use the k8s library to update the pods?

manaty
  • 3
  • 1
  • You may be interested in [ArgoCD](https://argo-cd.readthedocs.io/en/stable/) or [Flux](https://fluxcd.io/) – larsks Oct 19 '22 at 01:49

1 Answers1

0

You can use ArgoCD image updator

The Argo CD Image Updater can check for new versions of the container images that are deployed with your Kubernetes workloads and automatically update them to their latest allowed version using Argo CD. It works by setting appropriate application parameters for Argo CD applications, i.e. similar to argocd app set --helm-set image.tag=v1.0.1 - but in a fully automated manner.

auto-update-features

With auto image update, you just need to update the image in the docker registry and the image updater will take of the rest.

Here is the minimal annotation that will be required for the image updater to consider the specific application

      annotations:
        argocd-image-updater.argoproj.io/image-list: image-alias=1234.dkr.ecr.us-east-1.amazonaws.com/staging-app
        argocd-image-updater.argoproj.io/image-alias.update-strategy: latest
        argocd-image-updater.argoproj.io/image-alias.force-update: "true"
        argocd-image-updater.argoproj.io/image-alias.allow-tags: "regexp:^build-version-tag-[0-9]+$"
        argocd-image-updater.argoproj.io/image-alias.pull-secret: pullsecret:argocd/aws-registry-secret

argocd-demo-app

Adiii
  • 54,482
  • 7
  • 145
  • 148
  • Thank you. For example, is it possible to fire an update event at any given time? For example Slack → aws lambda → argo cd → kubernetes pod – manaty Oct 19 '22 at 05:23
  • yes, Argocd has a cli and you can trigger an update or sync app, for example `argocd app set $APP_NAME --release-name $APP_NAME -p replicaCount=1 -p image.tag="my-new-release"` – Adiii Oct 19 '22 at 05:52