容器编排技术 -- Kubernetes kubectl create namespace 命令详解

  • 1 kubectl create namespace
  • 2 语法
  • 3 示例
  • 4 Flags

kubectl create namespace

创建一个具有指定名称的namespace。

语法

$ namespace NAME [--dry-run]

示例

创建一个名为my-namespace的namespace

kubectl create namespace my-namespace

Flags

Name Shorthand Default Usage
allow-missing-template-keys   true If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.
dry-run   false If true, only print the object that would be sent, without sending it.
generator   namespace/v1 The name of the API generator to use.
no-headers   false When using the default or custom-column output format, don't print headers (default print headers).
output o   Output format. One of: json|yaml|wide|name|custom-columns=...|custom-columns-file=...|go-template=...|go-template-file=...|jsonpath=...|jsonpath-file=... See custom columns [http://kubernetes.io/docs/user-guide/kubectl-overview/#custom-columns], golang template [http://golang.org/pkg/text/template/#pkg-overview] and jsonpath template [http://kubernetes.io/docs/user-guide/jsonpath].
output-version     DEPRECATED: To use a specific API version, fully-qualify the resource, version, and group (for example: 'jobs.v1.batch/myjob').
save-config   false If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.
schema-cache-dir   ~/.kube/schema If non-empty, load/store cached API schemas in this directory, default is '$HOME/.kube/schema'
show-all a false When printing, show all resources (default hide terminated pods.)
show-labels   false When printing, show all labels as the last column (default hide labels column)
sort-by     If non-empty, sort list types using this field specification. The field specification is expressed as a JSONPath expression (e.g. '{.metadata.name}'). The field in the API resource specified by this JSONPath expression must be an integer or a string.
template     Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].
validate   true If true, use a schema to validate the input before sending it

容器编排技术 -- Kubernetes kubectl create namespace 命令详解相关推荐

  1. 容器编排技术 -- Kubernetes kubectl create clusterrolebinding 命令详解

    容器编排技术 -- Kubernetes kubectl create clusterrolebinding 命令详解 1 kubectl create clusterrolebinding 2 语法 ...

  2. 容器编排技术 -- Kubernetes kubectl create rolebinding 命令详解

    容器编排技术 -- Kubernetes kubectl create rolebinding 命令详解 1 kubectl create rolebinding 2 语法 3 示例 4 Flags ...

  3. 容器编排技术 -- Kubernetes kubectl create secret 命令详解

    容器编排技术 -- Kubernetes kubectl create secret 命令详解 1 kubectl create secret 2 语法 3 参考: kubectl create se ...

  4. 容器编排技术 -- Kubernetes kubectl create serviceaccount 命令详解

    容器编排技术 -- Kubernetes kubectl create serviceaccount 命令详解 1 kubectl create serviceaccount 2 语法 3 示例 4  ...

  5. 容器编排技术 -- Kubernetes kubectl create service 命令详解

    容器编排技术 -- Kubernetes kubectl create service 命令详解 1 kubectl create service 2 语法 3 参考 kubectl create s ...

  6. 容器编排技术 -- Kubernetes kubectl create role 命令详解

    容器编排技术 -- Kubernetes kubectl create role 命令详解 1 kubectl create role 2 语法 3 示例 4 Flags kubectl create ...

  7. 容器编排技术 -- Kubernetes kubectl create quota 命令详解

    容器编排技术 -- Kubernetes kubectl create quota 命令详解 1 kubectl create quota 2 语法 3 示例 4 Flags kubectl crea ...

  8. 容器编排技术 -- Kubernetes kubectl create poddisruptionbudget 命令详解

    容器编排技术 -- Kubernetes kubectl create poddisruptionbudget 命令详解 1 kubectl create poddisruptionbudget 2  ...

  9. 容器编排技术 -- Kubernetes kubectl create deployment 命令详解

    容器编排技术 -- Kubernetes kubectl create deployment 命令详解 1 kubectl create deployment 2 语法 3 示例 4 Flags ku ...

最新文章

  1. OpenGL编程指南4:双缓冲实现运行
  2. 盘点中国互联网行业10年2万多起投融资,17年投融资形势走向何处
  3. ubuntu 配置静态IP及DNS
  4. Vue中token刷新及token过期的实现
  5. ROS学习笔记13(测试一个简单的消息发布和消息订阅)
  6. Hadoop-cluster 集群完全分布式环境搭建
  7. 你知道IT行业里哪种岗位女生最多吗?
  8. Ora-12505 故障
  9. ffempge常用指令_fluent-ffmpeg 常用函数
  10. 《互联网周刊》:华为终端的未来之路
  11. AABB和OBB包围盒简介
  12. 计算机更新失败项怎么强制关闭,电脑卡在配置Windows Update失败界面无法开机怎么办...
  13. MySQL在RR级别下到底有没有修复幻读
  14. excel两个字符串相减_Excel用Substitute函数替换的5个实例及与Replace函数的区别
  15. 树莓派4B之声音传感器模块(python3)
  16. Java API 访问HA模式下的HDFS集群
  17. JS截取URL中最后一个斜杆前(后)的内容
  18. 支付宝接口 java_JAVA调用支付宝的直充接口
  19. #3 SLAM_Environment perception(环境感知模型)
  20. 复试不歧视的计算机院校,这些不歧视本科且保护一志愿的高校2021考研值得报考...

热门文章

  1. System.Threading.Thread类方法
  2. Linux文件的复制、删除和移动命
  3. Magento 自定义分页代码 How to change pagination design in product listing page in magen
  4. Magento教程 19:客户评论的审核与发布! (Pending Reviews)
  5. Mysql: LBS实现查找附近的人 (两经纬度之间的距离)
  6. 网页检测 AdBlock 的 6 种方法
  7. Google AJAX 搜索 API
  8. windows10配置make命令
  9. 【MobaXterm】设置保持SSH连接
  10. HTML5新增标签 0303