该API用于创建一个Namespace。
请求参数:
请求参数如表2所示。
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
kind |
Yes |
String |
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. The value of this parameter is Namespace. |
apiVersion |
Yes |
String |
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. The value of this parameter is v1. |
metadata |
Yes |
metadata object |
- |
spec |
No |
spec object |
- |
status |
No |
status object |
- |
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
finalizers |
No |
Array of strings |
Finalizers is an opaque list of values that must be empty to permanently remove object from storage. |
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
phase |
No |
String |
Phase is the current lifecycle phase of the namespace. |
请求示例:
{ "apiVersion":"v1", "kind": "Namespace", "metadata": { "name": "development", "labels": { "name": "development" } }, "spec": { "finalizers": ["kubernetes"] }, "status": { "phase": "Active" } }
响应参数:
响应参数的详细描述请参见请求消息。
响应示例:
{ "kind": "Namespace", "apiVersion": "v1", "metadata": { "name": "development", "selfLink": "/api/v1/namespaces/development", "uid": "c98a9a98-595c-11e6-b444-286ed488fafe", "resourceVersion": "16578", "creationTimestamp": "2016-08-03T09:29:33Z", "labels": { "name": "development" } }, "spec": { "finalizers": [ "kubernetes" ] }, "status": { "phase": "Active" } }
UDP 监听器简介 您可以在负载均衡实例上添加一个 UDP 监听器转发来自客户端的 UD...
COLA 是 Clean Object-Oriented and Layered Architecture的缩写 代表“整洁面向...
描述 作业中的实例度量信息。 具体 属性名称 类型 是否必须 描述 WaitingCount i...
比特网3月3日消息,微软公司正式宣布,将继续加大对中国市场云服务的投入,通过...
可以使用 config 文件指定多个任务和依赖关系,然后使用下面的命令提交: bcs sub...
一、什么是图像搜索 图像搜索是以深度学习和机器视觉技术为核心 提取图片内容特...
来源 | 阿里巴巴云原生公众号 Arthas Star?突破 2.5 万啦 开源地址:_h_ ttps://...
实现AI与行业知识高效结合,加速智能化升级,是现代社会及众多行业、企业愈加紧迫...
1. 接口描述 接口请求域名: bm.tencentcloudapi.com 。 重启机器 默认接口请求...
距离辛丑牛年《春节联欢晚会》倒计时 15 天,央视宣布:短视频 App 抖音成为春晚...