Kubernetes: Weave network not installing

2/24/2017

When I am running this command for weave network, it is showing this error.

[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

How to resolve this?

-- verma_neeraj
kubernetes
linux
nodes
weave

1 Answer

3/15/2017

@verma_neeraj,

  1. Does this still and consistently happen to you?
  2. Which Kubernetes version are you using?
  3. What happens if you run curl https://git.io/weave-kube?

I can confirm the YAML file available at https://git.io/weave-kube successfully configures the Weave Net daemonset under Kubernetes versions 1.5.+, but I have not tried other versions.

Anticipating an issue related to Kubernetes versions, note that there is work being done to support multiple Kubernetes versions, see these two GitHub issues. This should be available in the coming weeks.

(Disclosure: I work for Weaveworks)

-- Marc Carré
Source: StackOverflow