kueuectl create localqueue
概要
在指定命名空间中使用给定名称创建一个本地队列。
kueuectl create localqueue NAME -c CLUSTER_QUEUE_NAME [--ignore-unknown-cq] [--dry-run STRATEGY]
示例
# Create a local queue
kueuectl create localqueue my-local-queue -c my-cluster-queue
# Create a local queue with unknown cluster queue
kueuectl create localqueue my-local-queue -c my-cluster-queue -i
选项
--allow-missing-template-keys 默认值:true | |
如果为 true,当模板中缺少字段或映射键时,忽略模板中的任何错误。仅适用于 golang 和 jsonpath 输出格式。 | |
-c, --clusterqueue 字符串 | |
将与本地队列关联的集群队列名称(必需)。 | |
-h, --help | |
localqueue 的帮助 | |
-i, --ignore-unknown-cq | |
忽略未知的集群队列。 | |
-o, --output 字符串 | |
输出格式。其中之一:(json、yaml、name、go-template、go-template-file、template、templatefile、jsonpath、jsonpath-as-json、jsonpath-file)。 | |
--show-managed-fields | |
如果为 true,则在以 JSON 或 YAML 格式打印对象时保留 managedFields。 | |
--template 字符串 | |
在 -o=go-template、-o=go-template-file 中使用的模板字符串或模板文件路径。模板格式为 golang 模板 [https://golang.ac.cn/pkg/text/template/#pkg-overview]。 |
从父命令继承的选项
--as 字符串 | |
执行操作时要模拟的用户名。用户可以是普通用户或命名空间中的服务帐号。 | |
--as-group 字符串 | |
执行操作时要模拟的组,可以重复此标志以指定多个组。 | |
--as-uid 字符串 | |
执行操作时要模拟的 UID。 | |
--cache-dir 字符串 默认值:“$HOME/.kube/cache” | |
默认缓存目录 | |
--certificate-authority 字符串 | |
证书颁发机构的证书文件的路径 | |
--client-certificate 字符串 | |
TLS 客户端证书文件的路径 | |
--client-key 字符串 | |
TLS 客户端密钥文件的路径 | |
--cluster 字符串 | |
要使用的 kubeconfig 集群的名称 | |
--context 字符串 | |
要使用的 kubeconfig 上下文的名称 | |
--disable-compression | |
如果为真,则选择退出对服务器的所有请求的响应压缩 | |
--dry-run 字符串 默认值:“无” | |
必须为“无”、“服务器”或“客户端”。如果为客户端策略,则仅打印要发送的对象,而不发送它。如果为服务器策略,则提交服务器端请求,而不保留资源。 | |
--insecure-skip-tls-verify | |
如果为真,则不会检查服务器证书的有效性。这会使您的 HTTPS 连接不安全 | |
--kubeconfig 字符串 | |
用于 CLI 请求的 kubeconfig 文件的路径。 | |
-n, --namespace 字符串 | |
如果存在,则此 CLI 请求的命名空间范围 | |
--request-timeout 字符串 默认值:“0” | |
放弃单个服务器请求之前等待的时间长度。非零值应包含相应的时间单位(例如 1s、2m、3h)。值为零表示不要超时请求。 | |
-s, --server 字符串 | |
Kubernetes API 服务器的地址和端口 | |
--tls-server-name 字符串 | |
用于服务器证书验证的服务器名称。如果未提供,则使用用于联系服务器的主机名 | |
--token 字符串 | |
用于对 API 服务器进行身份验证的持有者令牌 | |
--user 字符串 | |
要使用的 kubeconfig 用户的名称 |
另请参阅
- kueuectl create - 创建资源