Kubernetes/Container engine HTTP API for creating pods

2/25/2015

I need to create pods using HTTP.

I created cluster using:

gcloud preview container clusters create

and I can create pod using:

gcloud preview container pods create

But this is not what i want. I want to create pods with instance of my application via http API.

There is API where I can create clusters. But I need something like this for creating pods. Is it possible?

-- Suvitruf - Andrei Apanasik
google-app-engine
google-kubernetes-engine
kubernetes

1 Answer

2/25/2015

This is basically the same question as this one (asked yesterday) and has the same answer:

Once you launch your container cluster on Google Container Engine, you will have a master running the kubernetes API on a VM in your GCP project. You can interact with it via the kubectl command line client, or you can extract the credentials for the cluster using gcloud and make HTTPS (but not HTTP) calls using the REST API exposed by the master.

-- Robert Bailey
Source: StackOverflow