Is there a way to tell kubernetes to update your containers? Is there a way to tell kubernetes to update your containers? kubernetes kubernetes

Is there a way to tell kubernetes to update your containers?


Kubectl can automate the process of rolling updates for you. Check out the docs here:https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/kubectl_rolling-update.md

A rolling update of an existing replication controller foo running Docker image bar:1.0 to image bar:2.0 can be as simple as runningkubectl rolling-update foo --image=bar:2.0.


Found where in the Kubernetes docs they mention updates: https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/replication-controller.md#rolling-updates. Wish it was more automated, but it works.

EDIT 1

For automating this, I've found https://www.npmjs.com/package/node-kubernetes-client which since I already automate the rest of my build and deployment with a node process, this will work really well.


The OpenShift Origin project (https://github.com/openshift/origin) runs an embedded Kubernetes cluster, but provides automated build and deployment workflows on top of your cluster if you do not want to roll your own solution.

I recommend looking at the example here:https://github.com/openshift/origin/tree/master/examples/sample-app

It's possible some of the build and deployment hooks may move upstream into the Kubernetes project in the future, but this would serve as a good example of how deployment solutions can be built on top of Kubernetes.