<p>I am trying to do some experiments with Kubernetes in google cloud.</p>

<p>I have docker image in google cloud registry and need to deploy that image to a kubernetes cluster.</p>

<p>Here are the steps I need to perform.</p>

<ol>
<li>Create a Kubernetes cluster.</li>
<li>Copy the image from GCR and deploy to Kubernetes cluster.</li>
<li>Expose the cluster to internet via load balancer.</li>
</ol>

<p>I know, it is possible to do via google cloud sdk cli. Is there way to do these steps via Java/node js?</p>

<p>There is a RESTful kubernetes-engine API:</p>

<p><a href="https://cloud.google.com/kubernetes-engine/docs/reference/api-organization" rel="nofollow noreferrer">https://cloud.google.com/kubernetes-engine/docs/reference/api-organization</a></p>

<p>e.g. create a cluster:</p>

<p><a href="https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.zones.clusters/create" rel="nofollow noreferrer">https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.zones.clusters/create</a></p>

<p>The container registry should be standard docker APIs.</p>

<p>Both Java and Node have kubernetes clients:</p>

<p><a href="https://github.com/kubernetes-client/java" rel="nofollow noreferrer">https://github.com/kubernetes-client/java</a>
<a href="https://github.com/godaddy/kubernetes-client" rel="nofollow noreferrer">https://github.com/godaddy/kubernetes-client</a></p>
