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

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

kubectl create service loadbalancer

创建一个指定名称的Service的LoadBalancer。

语法

$ loadbalancer NAME [--tcp=port:targetPort] [--dry-run]

示例

创建一个Service名为my-lbs的LoadBalancer。

kubectl create service loadbalancer my-lbs --tcp=5678:8080

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   service-loadbalancer/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 loadbalancer 命令详解相关推荐

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

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

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

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

  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. 笔记-项目范围管理-项目范围说明书
  2. WebLogic下WAR方式部署获取文件路径问题
  3. 判定点是否在不规则多边形内部的问题
  4. Python中处理DataFrame,R绘图
  5. 反转字符串中的元音字符_C程序消除字符串中的所有元音
  6. 计算机基础ABCDEF,计算机应用基础_在线作业ABCDEF.docx
  7. Java中选择排序,冒泡排序,插入排序,快速排序
  8. 量子计算机和量子干涉,量子计算中的干涉
  9. [asp.net]优化ViewState
  10. 华为G700电脑版Root软件-Eroot
  11. bugly android升级,android 新版本升级示例源码(bugly)
  12. 计算机读不出光盘,光驱读不出光盘,详细教您电脑光盘不能被识别怎么解决
  13. 计算机属性资源管理器已停止工作,资源管理器已停止工作,详细教您怎么解决资源管理器已停止工作...
  14. 【原创】OpenDDS笔记(一) Windows环境下的开发实例
  15. 如何检查java代码有误_Java代码查错题
  16. 如何在飞腾平台使用4G模块拨号上网
  17. 一分钟了解Mysql的间隙锁——《深究Mysql锁》
  18. 点石成金:“硅业报国”不仅是理念
  19. tkinter文本框小功能(6):锚点
  20. Easyexcel数据追加模式

热门文章

  1. 连连看外挂消去算法分析
  2. 用WebService实现调用新浪的天气预报功能
  3. 一步步安装Ubuntu 13.10服务版
  4. php命令行用法简介
  5. varnish 高性能方向代理服务器
  6. Leetcode算法题(C语言)15--字符串中的第一个唯一字符
  7. xshell终端中文乱码解决
  8. 【今日CS 视觉论文速览】Thu, 13 Dec 2018
  9. DbHelper重用性方案 优化工具类 jdbc
  10. html骨架标签 0907