kube-distribution is a process that listen to docker registry push events events, and automatically run updated Kubernetes Deployment with new pushed image.
Docker image tag format: {branch}--{kubernetes namespace}--{kubernetes deployment}--{version} (example: master--default--ceribrodeplyment--7)
$ docker run -d -e KUBERNETES_CONFIG=$HOME/.kube/config --name kube-distribution -p 5050:5050 vayuadm/kube-distribution
KUBERNETES_CONFIG
- Path to kube config (If empty - in-cluster configuration is assumed).
When running inside kubernetes cluster, no need to set KUBERNETES_CONFIG
environment variable, since kube-distribution will load the configuration on its own.
$ env GOOS=linux GOARCH=386 go build -o .dist/kube-distribution -v