I expected kubectl apply -n kube-system -f "https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\n')" to work.
error: unable to read URL "https://cloud.weave.works/k8s/net?k8s-version=Q2xpZW50IFZlcnNpb246IHZlcnNpb24uSW5mb3tNYWpvcjoiMSIsIE1pbm9yOiI2IiwgR2l0VmVyc2lvbjoidjEuNi40IiwgR2l0Q29tbWl0OiJkNmY0MzMyMjQ1MzhkNGY5Y2EyZjdhZTE5YjI1MmU2ZmNiNjZhM2FlIiwgR2l0VHJlZVN0YXRlOiJjbGVhbiIsIEJ1aWxkRGF0ZToiMjAxNy0wNS0xOVQxODo0NDoyN1oiLCBHb1ZlcnNpb246ImdvMS43LjUiLCBDb21waWxlcjoiZ2MiLCBQbGF0Zm9ybToiZGFyd2luL2FtZDY0In0KU2VydmVyIFZlcnNpb246IHZlcnNpb24uSW5mb3tNYWpvcjoiMSIsIE1pbm9yOiI3IiwgR2l0VmVyc2lvbjoidjEuNy4wIiwgR2l0Q29tbWl0OiJkM2FkYTAxMTllNzc2MjIyZjExZWM3OTQ1ZTZkODYwMDYxMzM5YWFkIiwgR2l0VHJlZVN0YXRlOiJjbGVhbiIsIEJ1aWxkRGF0ZToiMjAxNy0wNi0yOVQyMjo1NToxOVoiLCBHb1ZlcnNpb246ImdvMS44LjMiLCBDb21waWxlcjoiZ2MiLCBQbGF0Zm9ybToibGludXgvYW1kNjQifQo=", server reported 400 Bad Request, status code=400
Type kubectl apply -n kube-system -f "https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\n')"
Output of kubectl version:
Client Version: version.Info{Major:"1", Minor:"6", GitVersion:"v1.6.4", GitCommit:"d6f433224538d4f9ca2f7ae19b252e6fcb66a3ae", GitTreeState:"clean", BuildDate:"2017-05-19T18:44:27Z", GoVersion:"go1.7.5", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.0", GitCommit:"d3ada0119e776222f11ec7945e6d860061339aad", GitTreeState:"clean", BuildDate:"2017-06-29T22:55:19Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
@carldanley, our YAML generator currently does not support Kubernetes 1.7.
In the meantime, you may want to try the 1.6 YAML and see how that goes:
kubectl apply -n kube-system -f "https://cloud.weave.works/k8s/v1.6/net"
For the record, here is the response:
$ curl -L "https://cloud.weave.works/k8s/v1.7/net"
body:
code: BadRequestError
message: >-
Unsupported Kubernetes version: "v1.7". Please provide a Kubernetes version
among ["v1.4","v1.5","v1.6"]; for example: /k8s/v1.6/net.yaml
jse_info: {}
jse_shortmsg: >-
Unsupported Kubernetes version: "v1.7". Please provide a Kubernetes version
among ["v1.4","v1.5","v1.6"]; for example: /k8s/v1.6/net.yaml
message: >-
Unsupported Kubernetes version: "v1.7". Please provide a Kubernetes version
among ["v1.4","v1.5","v1.6"]; for example: /k8s/v1.6/net.yaml
statusCode: 400
@carldanley, this has now been fixed.
Thank you @marccarre !
Weave for 1.6 seems to work on k8s 1.7.
Actually, only a partial YAML is generated with v1.7 -- our automated integration tests failed us!
Please keep using this workaround for now:
$ kubectl apply -n kube-system -f "https://cloud.weave.works/k8s/v1.6/net"
has anyone upgraded already existed cluster 1.6 yet?
UPD: I have. It works.
YAML generator now fixed, and generated YAML confirmed valid.