0

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
  • 21
  • 2
  • 8
  • Also getting this after using --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 found` – verma_neeraj Feb 24 '17 at 06:41
  • What version of Kubernetes were you running? – Bryan Mar 15 '17 at 11:21

1 Answers1

1

@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é
  • 1,446
  • 13
  • 19