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

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

kubectl create service externalname

创建指定Service名的ExternalName。

语法

$ externalname NAME --external-name external.name [--dry-run]

示例

创建Service名为my-ns的ExternalName

kubectl create service externalname my-ns --external-name bar.com

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.
external-name     external name of service
generator   service-externalname/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.
tcp   [] Port pairs can be specified as ':'.
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 service externalname 命令详解相关推荐

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

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

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

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

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

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

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

    容器编排技术 -- Kubernetes kubectl create secret docker-registry 命令详解 1 kubectl create secret docker-regis ...

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

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

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

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

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

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

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

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

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

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

最新文章

  1. android用户界面之WebView教程实例汇总
  2. 论如何骗过计算机视觉AI网络,UCLA专家为你支几招
  3. mysql数据集_Mysql 数据库-我的测试环境
  4. Oracle 触发器使用实例
  5. 2020移动apn接入点哪个快_手机推荐:为什么别人的手机4G网总是比你快?这样设置一下,网速立马飙升...
  6. Matlab学习------------带有右键菜单的GUI学习实例
  7. 主成分分析法案例_因子分析案例及操作解析
  8. 第三次大转型:中国居住新十年报告
  9. python返回函数值并退出函数_Python函数的返回值和作用域
  10. asp.net 去除字符串右侧的最后一个字符
  11. 编程之美-程序理解和时间分析
  12. DbVisualizer的Driver连接Oracle Thin选项不可选
  13. QT5.9 for 安卓开发 环境配置
  14. 2022年第十三届蓝桥杯省赛B组python题目部分解题
  15. LED设备驱动开发实验—源码代码详解
  16. 黑客窃取企业数据的后门程序技巧
  17. 黑猴子的家:JavaWeb 之 CSS
  18. jini surrogate架构
  19. 【白话机器学习系列】白话Broadcasting
  20. 踩坑总结!因子图优化SLAM研究方向归纳

热门文章

  1. 6个重要的.NET概念:栈,堆,值类型,引用类型,装箱,拆箱
  2. jQuery: 操作select option方法集合
  3. CSS单位 px pt em和rem 之间的区别
  4. 简单的php代理 Simple PHP Proxy
  5. Flex组件的行为和动画效果(实例)
  6. 阿里云 Centos 7 PHP7环境配置 LNMP
  7. Spring、SpringMVC、Spring Boot、Spring Cloud 概念、关系及区别
  8. 【三维深度学习】点云上采样网络PU-Net 代码分析
  9. Python列出文件夹下某类文件名的方法
  10. Nginx学习之六-nginx核心进程模型