[root@master /]# kubectl logs -f kube-flannel-ds-rct6r -nkube-system
Defaulted container “kube-flannel” out of: kube-flannel, install-cni-plugins (init), install-cni-plugin (init), install-cni (init)
I0729 08:45:40.033951 1 main.go:211] CLI flags config: {etcdEndpoints:http://127.0.0.1:4001,http://127.0.0.1:2379 etcdPrefix:/coreos.com/network etcdKeyfile: etcdCertfile: etcdCAFile: etcdUsername: etcdPassword: version:false kubeSubnetMgr:true kubeApiUrl: kubeAnnotationPrefix:flannel.alpha.coreos.com kubeConfigFile: iface:[] ifaceRegex:[] ipMasq:true ifaceCanReach: subnetFile:/run/flannel/subnet.env publicIP: publicIPv6: subnetLeaseRenewMargin:60 healthzIP:0.0.0.0 healthzPort:0 iptablesResyncSeconds:5 iptablesForwardRules:true netConfPath:/etc/kube-flannel/net-conf.json setNodeNetworkUnavailable:true}
W0729 08:45:40.034074 1 client_config.go:618] Neither –kubeconfig nor –master was specified. Using the inClusterConfig. This might not work.
I0729 08:45:40.045244 1 kube.go:139] Waiting 10m0s for node controller to sync
I0729 08:45:40.045315 1 kube.go:469] Starting kube subnet manager
I0729 08:45:40.048016 1 kube.go:490] Creating the node lease for IPv4. This is the n.Spec.PodCIDRs: [100.64.0.0/24]
I0729 08:45:40.048039 1 kube.go:490] Creating the node lease for IPv4. This is the n.Spec.PodCIDRs: [100.64.1.0/24]
I0729 08:45:40.048045 1 kube.go:490] Creating the node lease for IPv4. This is the n.Spec.PodCIDRs: [100.64.2.0/24]
I0729 08:45:41.045448 1 kube.go:146] Node controller sync successful
I0729 08:45:41.045501 1 main.go:231] Created subnet manager: Kubernetes Subnet Manager - node1
I0729 08:45:41.045506 1 main.go:234] Installing signal handlers
I0729 08:45:41.045650 1 main.go:452] Found network config - Backend type: vxlan
I0729 08:45:41.048056 1 kube.go:669] List of node(node1) annotations: map[string]string{“flannel.alpha.coreos.com/backend-data”:"{\“VNI\”:1,\“VtepMAC\”:\“4a:78:af:3a:c8:c8\”}", “flannel.alpha.coreos.com/backend-type”:“vxlan”, “flannel.alpha.coreos.com/kube-subnet-manager”:“true”, “flannel.alpha.coreos.com/public-ip”:“172.16.1.245”, “kubeadm.alpha.kubernetes.io/cri-socket”:“unix:///run/containerd/containerd.sock”, “node.alpha.kubernetes.io/ttl”:“0”, “volumes.kubernetes.io/controller-managed-attach-detach”:“true”}
I0729 08:45:41.048140 1 match.go:210] Determining IP address of default interface
I0729 08:45:41.048408 1 match.go:263] Using interface with name eth0 and address 172.16.1.245
I0729 08:45:41.048432 1 match.go:285] Defaulting external address to interface address (172.16.1.245)
I0729 08:45:41.048484 1 vxlan.go:141] VXLAN config: VNI=1 Port=0 GBP=false Learning=false DirectRouting=false
I0729 08:45:41.050145 1 kube.go:636] List of node(node1) annotations: map[string]string{“flannel.alpha.coreos.com/backend-data”:"{\“VNI\”:1,\“VtepMAC\”:\“4a:78:af:3a:c8:c8\”}", “flannel.alpha.coreos.com/backend-type”:“vxlan”, “flannel.alpha.coreos.com/kube-subnet-manager”:“true”, “flannel.alpha.coreos.com/public-ip”:“172.16.1.245”, “kubeadm.alpha.kubernetes.io/cri-socket”:“unix:///run/containerd/containerd.sock”, “node.alpha.kubernetes.io/ttl”:“0”, “volumes.kubernetes.io/controller-managed-attach-detach”:“true”}
I0729 08:45:41.050178 1 vxlan.go:155] Interface flannel.1 mac address set to: 4a:78:af:3a:c8:c8
E0729 08:45:41.050507 1 main.go:343] Error registering network: failed to acquire lease: subnet “172.31.0.0/17” specified in the flannel net config doesn’t contain “100.64.1.0/24” PodCIDR of the “node1” node
I0729 08:45:41.050540 1 main.go:432] Stopping shutdownHandler…