Home > Software engineering >  Automate docker pull commit and update kubernetes
Automate docker pull commit and update kubernetes

Time:10-28

I have docker images hosted external at docker hub which get updates every week.

Currently i did

Docker pull

Update some config files in the docker

Docker commit

Docker push

Then manually change the image name at kubernetes deployment yaml file.

What is the best practise for me to automate this? Can this be initiated in kubernetes?

CodePudding user response:

K8s doesn't support such a functionality (yet, at least!)

but you can use GitOps tools like Flux to automate this procedure, also you could use scheduled jobs of k8s combined to bash or python scripts to automate the task.

you better check out this post too: Auto Update Container Image When New Build Released on Kubernetes

  • Related