Alternative to Kubernetes rolling update in rest api

12/7/2015

After a quick search of the api docs I found out that in Kubernetes there is no rest api provided for kubectl rolling-update. Is there any other alternative for perform a rolling update by calling several apis or so? Thanks in advance.

-- Sudheera
api
kubernetes

2 Answers

12/7/2015

I think the Kubernetes Deployment object is what you are looking for. It is an object in the Kubernetes REST API (as opposed to the client-side magic in kubectl rolling-update).

You can specify .spec.strategy.type==RollingUpdate as your Deployment Strategy to get similar behavior to kubectl rolling-update

-- CJ Cullen
Source: StackOverflow

12/7/2015

If kubernetes is not strict requirements and you can switch to latest openshift origin (which is "kubernetes on steroids") you can use origin feature called "deployment". Openshift deployments are accessible via api similar to general kubernetes api.

-- Vyacheslav Enis
Source: StackOverflow