Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elafarge/k8s-dockerhub-sync
Updates on a tag on DockerHub trigger updates in your Kubernetes deployments, the bad way
https://github.com/elafarge/k8s-dockerhub-sync
Last synced: 18 days ago
JSON representation
Updates on a tag on DockerHub trigger updates in your Kubernetes deployments, the bad way
- Host: GitHub
- URL: https://github.com/elafarge/k8s-dockerhub-sync
- Owner: elafarge
- License: apache-2.0
- Created: 2018-03-13T02:40:57.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-06-25T08:47:53.000Z (over 6 years ago)
- Last Synced: 2024-11-06T01:49:53.878Z (2 months ago)
- Language: Go
- Size: 16.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Dockerhub deployment webhook for Kubernetes
===========================================This consists in a really tiny HTTP server meant to receive webhook
notifications from DockerHub once images are built on a given tag.This little program will figure out if deployments (in the namespaces you
specify) use images that match this `repo/image:tag` combination and, if so,
will update the target deployment in a rolling update fashion using an dirty old
trick.Important Note
--------------
You shouldn't push your releases on the same tag, and therefore shouldn't need
this script: in order to benefit from Kubernetes roll back features (`kubectl
rollout undo ...`) it's much better to tag images according to the hashtag of
the commit id they are built upon (or the release tag, or any identifier for
every release of your image, would it be a simple date).
Doing so simply makes it impossible to roll back to previous versions of your
container without rebuilding & repushing a former version of the code they're
built upon.However, some people seem to use such a moving "release tag" on Docker cloud
so... this might come in handy if you're moving to Kubernetes.Maintainer
----------
* Étienne Lafarge