cluster: autodetect IP address

This is so that Calico starts with the proper subnet. Feeding it just an
IP from the node status will mean it parses it as /32 and uses IPIP
tunnels for all connectivity.
changes/03/3/1
q3k 2019-01-18 09:39:57 +01:00
parent 2afe3e46fd
commit e3af1eb852
1 changed files with 2 additions and 1 deletions

View File

@ -260,7 +260,8 @@ local bindServiceAccountClusterRole(sa, cr) = kube.ClusterRoleBinding(cr.metadat
CALICO_K8S_NODE_REF: kube.FieldRef("spec.nodeName"),
CALICO_NETWORK_BACKEND: kube.ConfigMapRef(env.cm, "calico_backend"),
CLUSTER_TYPE: "k8s,bgp",
IP: kube.FieldRef("status.hostIP"),
IP: "autodetect",
IP_AUTODETECTION_METHOD: "interface=eno.*",
CALICO_IPV4POOL_IPIP: "Always",
FELIX_IPINIPMTU: kube.ConfigMapRef(env.cm, "veth_mtu"),
CALICO_IPV4POOL_CIDR: "10.10.24.0/21",