-
Notifications
You must be signed in to change notification settings - Fork 673
Instructions for running on GKE #3466
Comments
@scottohara AFAIK there is no recommended steps that works (reliably) to run Weave on GKE. Reason being GKE as managed services uses different CNI (last i checked it was kubenet) by default. I believe it is possible to run Weave of GKE but require hacks to configuration while provisioning cluster. For e.g. #3111 Also GKE I believe uses different path (/home/kubernetes/bin) for CNI configuration hence you see this error in your weave logs.
Not ideal but If you are comfortable try the hacks you can find scattered across the CNI on how users are able to run on GKE (for e.g cilium/cilium#4794) |
Thanks very much @murali-reddy, I’ll try some of those hacks. Do you think the install docs should include something about the limitations of GKE? Currently there is nothing there to suggest it won’t work, and the presence of the paragraph regarding the RBAC requirements for GKE actually suggests the opposite. I think it would save a lot of wasted time and effort if the docs indicated that GKE is not supported by default. |
Agree. docs should include limitations with managed Kubernetes services. There is similar issue with EKS #3335 which needs special steps to enable Weave as CNI. |
What you expected to happen?
As a novice Kubernetes user, installing Weave Net in GKE as per the instructions, the docs specify:
"After a few seconds, a Weave Net pod should be running on each Node and any further pods you create will be automatically attached to the Weave network."
I am assuming (and I could well be wrong here) that this means any new pods created should be allocated an IP within Weave's default range (10.32.0.0/12)
What happened?
New pods are being allocated a range in the default cluster CIDR range (10.20.0.0/14).
(Background: I'm attempting to run Atlassian Confluence Data Center on GKE. Confluence Data Centre uses Hazelcast, and needs multicast support for the nodes to find each other. This has led me to installing Weave Net, for it's multicast support; but as yet I have not been successful in getting it to work).
How to reproduce it?
(the pod created by [pod spec].yml has an IP in the 10.20.x.x range)
Anything else we need to know?
Not really, just a vanilla GKE cluster with Weave installed as per instructions.
I'm certain the problem is simply a lack of understanding on my part; but as far as I can tell I've followed the "Weave Net can be installed onto your CNI-enabled Kubernetes cluster with a single command" instructions to the letter.
Versions:
Logs:
The text was updated successfully, but these errors were encountered: