简体   繁体   中英

Kubernetes/Container engine HTTP API for creating pods

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM