Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add on-premise nodes to GKE

How do I add my on-premise node to my managed cluster?

I've tried doing "kubeadm join --token " with a default-token from the ui and the cluster endpoint as ip.

like image 606
toon sevrin Avatar asked Oct 12 '16 13:10

toon sevrin


1 Answers

You can add an on-prem node to your GKE cluster if you manually configure the kubelet (basically what kubeadm makes nice and easy).

Your cluster may not work as expected though unless you also create a VPN connection between the on-prem node and your cloud network where the rest of your nodes are running and also configure networking routes to map a node CIDR to your on-prem node. Otherwise, cross-pod networking will not work.

In addition, features like kubectl exec and kubectl logs likely won't work for any pods running on your on-prem node.

like image 129
Robert Bailey Avatar answered Sep 25 '22 01:09

Robert Bailey