Install Kubernetes + Cilium on different networks Install Kubernetes + Cilium on different networks kubernetes kubernetes

Install Kubernetes + Cilium on different networks


We solved the problem.

Cluster must be created by command:

kubeadm init --config=kubeadm-config.yaml --upload-certs

Where kubeadm-config.yaml contains:

apiVersion: kubeadm.k8s.io/v1beta2kind: ClusterConfigurationkubernetesVersion: 1.18.3controlPlaneEndpoint: "10.7.1.1:6443"networking:  podSubnet: "10.217.0.0/16"etcd:  local:    serverCertSANs: ["10.7.1.1", "10.7.2.2", "10.7.0.1", "10.8.1.1", "10.8.2.2", "10.8.0.1"]    peerCertSANs:   ["10.7.1.1", "10.7.2.2", "10.7.0.1", "10.8.1.1", "10.8.2.2", "10.8.0.1"]

Pay attention to yaml-parameters: serverCertSANs, and peerCertSANs : its contain 10.7.0.1 and 10.8.0.1 - these IPs come to node in network packages as client IP and must be registered as trusted IP. If you have another IPs in inter-node interaction, it must be registered too.