Public | Automated Build

Last pushed: a year ago
Short Description
Go traffic dealer
Full Description

kube-go

Kubernetes Continues Integration hook.

It provides hook for docker hub or other build tools for auto update components in the Kubetnetes Cluster.

Install to kubernetes cluster.

kubectl create -f service.yaml
kubectl create -f controller.yaml

Check status and hook external IP.

kubect --namespace=cloudtrack get po
kubect --namespace=cloudtrack get svc

##Docker HUB web hook

http://EXTERNAL_LOAD_BALANCER_ADDT:8082/api/v0.1/update

##Start Manual update

http://EXTERNAL_LOAD_BALANCER_ADDT:8082/api/v0.1/update?repo={repo_name}&tag={version}

##Tag Version Agreemnt

  • "latest" - update always(on every push).
  • NEW_TAG - will trigger update if OLD_TAG<NEW_TAG(compare as string)

Additional Information

  • Replication Controller may be updated by two different ways. Use annotation "io.kube-go.ci" to set strategy.
    • "io.kube-go.ci:down/up" - First scale down ReplicationController to 0 and after that scale up it to previous value.
    • "io.kube-go.ci:rollingUpdate" - Make kubernetes rolling update.
    • default is "io.kube-go.ci:down/up"
  • Pod will be deleted and new one created.

Current limitations

  • Only Pod and ReplicationController resources supported.
  • Now way set custom configuration for RollingUpdate
Docker Pull Command
Owner
kuberlab
Source Repository