【问题标题】:What does the --network option of `kind create cluster` do?`kind create cluster` 的 --network 选项有什么作用?
【发布时间】: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 给你什么?我什至没有那面旗帜。
  • 我也没有在源代码中看到ClusterOptions structCLI options

标签: docker kind


【解决方案1】:

我确实只是将所有节点添加到指定的 docker 网络。我可能使用了旧版本的 kind,我再也无法访问了。

【讨论】:

    猜你喜欢
    • 2021-05-29
    • 1970-01-01
    • 2014-10-22
    • 2020-01-18
    • 2016-11-02
    • 2012-08-03
    • 2020-11-13
    • 2012-02-17
    • 2017-01-11
    相关资源
    最近更新 更多