Skip to content

vayuadm/kube-distribution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kube-distribution

CircleCI codecov Go Report Card

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)

Running Kubernetes Distribution inside a Docker container

$ 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).

Running Kubernetes Distribution as Kubernetes Pod

When running inside kubernetes cluster, no need to set KUBERNETES_CONFIG environment variable, since kube-distribution will load the configuration on its own.

Building the project in OSX

$ env GOOS=linux GOARCH=386 go build -o .dist/kube-distribution -v