【发布时间】:2020-07-29 07:15:39
【问题描述】:
kind create cluster --help
Creates a local Kubernetes cluster using Docker container 'nodes'
Usage:
kind create cluster [flags]
Flags:
--config string path to a kind config file
-h, --help help for cluster
--image string node docker image to use for booting the cluster
--kubeconfig string sets kubeconfig path instead of $KUBECONFIG or $HOME/.kube/config
--name string cluster context name (default "kind")
--network string docker image to add the nodes to
--retain retain nodes for debugging when cluster creation fails
--wait duration Wait for control plane node to be ready (default 0s)
Global Flags:
--loglevel string DEPRECATED: see -v instead
-q, --quiet silence all stderr output
-v, --verbosity int32 info log verbosity
--network 选项有什么作用?我在 kind 网站本身上找不到任何文档,而且我目前对 docker 的理解不允许我解析描述。
如何将节点添加到图像中?那有什么意思?这是否与docker network 有任何关系?
【问题讨论】:
-
老实说,它看起来像是一个错字。并且可能应该说“Docker Network”。不过,有兴趣听听其他人要说的话。
-
kind version给你什么?我什至没有那面旗帜。 -
我也没有在源代码中看到
ClusterOptionsstruct 或CLI options。