Answers: <p>You could try to run <a href="https://medium.com/vivid-seats-engineering/how-to-kubernetes-pods-as-jenkins-build-agents-a726d3886861" rel="nofollow noreferrer">Jenkins agents in the k8s cluster</a>. Then you could write a script that is capable of update the tag of a deployment. We use gitlab in k8s and in conjunction with helm it is possible to update and deploy the image.</p>
  
Answers: CC BY-SA 4.0
Answers: 2021-08-20T15:44:09.107Z
Answers: 2021-08-20T15:44:09.107Z
Answers: 030
Answers: <p>You can't on the fly, but you can build a system around Docker hub if you setup a webhooks. I have build a free software for Docker Swarm auto-deployment <a href="https://github.com/pnk-sh/docker-octopus-stack" rel="nofollow noreferrer">https://github.com/pnk-sh/docker-octopus-stack</a></p>
  <p>If you use software there &quot;pull&quot; every min. then you get in troubles with Docker Hub when you hit 5000 pull's a day.</p>
  <p>Its required you buy a pro-account, free account will only allow you around 250 pulls a day.</p>
  
Answers: CC BY-SA 4.0
Answers: 2021-08-17T20:19:39.890Z
Answers: 2021-08-17T20:19:39.890Z
Answers: ParisNakitaKejser
Body: <p>I have configured jenkins with github.com. Jenkins notices if commit occurs and then jenkins make the docker image and upload the new image to docker hub. How can I make k8s listens to docker hub i.e. k8s notices the change in docker hub and then creates a new deployment. What tool should be used?</p>
  
Tags: <jenkins><kubernetes><dockerhub>
Title: K8s with docker hub
UserDisplayName: user30311
ThreadText: # K8s with docker hub
  
  (Asked by: username_0 on 2021-08-17)
  
  I have configured jenkins with github.com. Jenkins notices if commit occurs and then jenkins make the docker image and upload the new image to docker hub. How can I make k8s listens to docker hub i.e. k8s notices the change in docker hub and then creates a new deployment. What tool should be used?
  
  **Tags:** jenkins, kubernetes, dockerhub
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2021-08-20. Score: 0
  
  You could try to run [Jenkins agents in the k8s cluster](https://medium.com/vivid-seats-engineering/how-to-kubernetes-pods-as-jenkins-build-agents-a726d3886861). Then you could write a script that is capable of update the tag of a deployment. We use gitlab in k8s and in conjunction with helm it is possible to update and deploy the image.
  
  
  ---
  
  ### Answer by username_2 on 2021-08-17. Score: 0
  
  You can't on the fly, but you can build a system around Docker hub if you setup a webhooks. I have build a free software for Docker Swarm auto-deployment <https://github.com/pnk-sh/docker-octopus-stack>
  
  If you use software there "pull" every min. then you get in troubles with Docker Hub when you hit 5000 pull's a day.
  
  Its required you buy a pro-account, free account will only allow you around 250 pulls a day.
  
  
  ---
  
  