简体   繁体   English

用于创建pod的Kubernetes / Container引擎HTTP API

[英]Kubernetes/Container engine HTTP API for creating pods

I need to create pods using HTTP. 我需要使用HTTP创建pod。

I created cluster using: 我创建了集群:

gcloud preview container clusters create

and I can create pod using: 我可以使用以下方法创建pod:

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. 我想通过http API创建包含我的应用程序实例的pod。

There is API where I can create clusters. API可以创建集群。 But I need something like this for creating pods. 但我需要这样的东西来创建pod。 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. 在Google容器引擎上启动容器群集后,您将拥有一个在GCP项目中的VM上运行kubernetes API的主服务器。 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. 您可以通过kubectl命令行客户端与其进行交互,也可以使用gcloud提取集群的凭据,并使用主服务器公开的REST API进行HTTPS(但不是HTTP)调用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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