Sign inSign up

kuberlab/gotraffic

By kuberlab

Updated about 2 months ago

Go traffic dealer

Image
0

2.3K

kuberlab/gotraffic repository overview

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

Tag summary

Content type

Image

Digest

sha256:537c39f8f

Size

57.9 MB

Last updated

about 2 months ago

docker pull kuberlab/gotraffic