【发布时间】: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