【问题标题】:Kubernetes: Weave network not installingKubernetes:编织网络未安装
【发布时间】:2017-03-15 19:31:34
【问题描述】:

当我为 weave 网络运行此命令时,它显示此错误。

[root@ts ~]# kubectl apply -f https://git.io/weave-kube
error validating "https://git.io/weave-kube": error validating data: [unexpected type: object, unexpected type: object, unexpected type: object, unexpected type: object]; if you choose to ignore these errors, turn validation off with --validate=false

如何解决这个问题?

【问题讨论】:

  • 使用 --validate=false [root@ts ~]# kubectl apply -f https://git.io/weave-kube --validate=false Error from server: error when retrieving current configuration of: &{0xc2082cbb80 0xc20800eaf0 kube-system weave-net https://git.io/weave-kube 0xc2083643c0 0xc2083fc5a0 } from server for: "https://git.io/weave-kube": daemonsets.extensions "weave-net" not found987654322@
  • 你运行的是什么版本的 Kubernetes?

标签: linux nodes kubernetes weave


【解决方案1】:

@verma_neeraj,

  1. 您是否仍然经常发生这种情况?
  2. 您使用的是哪个 Kubernetes 版本?
  3. 如果你运行curl https://git.io/weave-kube会发生什么?

我可以确认https://git.io/weave-kube提供的YAML文件成功配置了Kubernetes版本1.5.+下的Weave Net daemonset,但我没有尝试其他版本。

预计会出现与 Kubernetes 版本相关的问题,请注意正在开展工作以支持多个 Kubernetes 版本,请参阅 these two GitHub 问题。 这应该会在未来几周内推出。

(披露:我为 Weaveworks 工作)

【讨论】:

    猜你喜欢
    • 2020-10-11
    • 2020-09-07
    • 1970-01-01
    • 2020-04-26
    • 2022-12-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多