Нужен совет
KUBERNETES
POD не получает IP адреса от FLANNEL
Куда копать?
kubectl logs -n kube-flannel kube-flannel-ds-k22qx
Defaulted container "kube-flannel" out of: kube-flannel, install-cni-plugin (init), install-cni (init)
I1219 15:15:42.175870 1 main.go:215] 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 ipMasqRandomFullyDisable:false ifaceCanReach: subnetFile:/run/flannel/subnet.env publicIP: publicIPv6: subnetLeaseRenewMargin:60 healthzIP:0.0.0.0 healthzPort:0 iptablesRe syncSeconds:5 iptablesForwardRules:true blackholeRoute:false netConfPath:/etc/kube-flannel/net-conf.json setNodeNetworkUnavailable:true}
W1219 15:15:42.176156 1 client_config.go:659] Neither --kubeconfig nor --master was specified. Using the inClusterConfig. This might not work.
I1219 15:15:42.193433 1 kube.go:139] Waiting 10m0s for node controller to sync
I1219 15:15:42.193501 1 kube.go:537] Starting kube subnet manager
I1219 15:15:43.195283 1 kube.go:163] Node controller sync successful
I1219 15:15:43.195513 1 main.go:241] Created subnet manager: Kubernetes Subnet Manager - node-01
I1219 15:15:43.195590 1 main.go:244] Installing signal handlers
I1219 15:15:43.197477 1 main.go:523] Found network config - Backend type: vxlan
I1219 15:15:43.215555 1 kube.go:737] List of node(node-01) annotations: map[string]string{"kubeadm.alpha.kubernetes.io/cri-socket":"unix:///var/run/containerd/containerd.s ock", "node.alpha.kubernetes.io/ttl":"0", "volumes.kubernetes.io/controller-managed-attach-detach":"true"}
I1219 15:15:43.215676 1 match.go:211] Determining IP address of default interface
I1219 15:15:43.219122 1 match.go:269] Using interface with name enp0s3 and address 192.168.1.100
I1219 15:15:43.219500 1 match.go:291] Defaulting external address to interface address (192.168.1.100)
I1219 15:15:43.220506 1 vxlan.go:128] VXLAN config: VNI=1 Port=0 GBP=false Learning=false DirectRouting=false
I1219 15:15:43.235371 1 kube.go:704] List of node(node-01) annotations: map[string]string{"kubeadm.alpha.kubernetes.io/cri-socket":"unix:///var/run/containerd/containerd.s ock", "node.alpha.kubernetes.io/ttl":"0", "volumes.kubernetes.io/controller-managed-attach-detach":"true"}
I1219 15:15:43.286824 1 kube.go:558] Creating the node lease for IPv4. This is the n.Spec.PodCIDRs: [10.244.0.0/24]
I1219 15:15:43.294251 1 main.go:378] Cleaning-up unused traffic manager rules
I1219 15:15:43.294289 1 nftables.go:280] Cleaning-up nftables rules...
I1219 15:15:43.394848 1 iptables.go:50] Starting flannel in iptables mode...
W1219 15:15:43.394970 1 main.go:577] no subnet found for key: FLANNEL_NETWORK in file: /run/flannel/subnet.env
W1219 15:15:43.394989 1 main.go:577] no subnet found for key: FLANNEL_SUBNET in file: /run/flannel/subnet.env
W1219 15:15:43.395001 1 main.go:612] no subnet found for key: FLANNEL_IPV6_NETWORK in file: /run/flannel/subnet.env
W1219 15:15:43.395011 1 main.go:612] no subnet found for key: FLANNEL_IPV6_SUBNET in file: /run/flannel/subnet.env
I1219 15:15:43.395047 1 iptables.go:101] Current network or subnet (10.244.0.0/16, 10.244.0.0/24) is not equal to previous one (0.0.0.0/0, 0.0.0.0/0), trying to recycle ol d iptables rules
I1219 15:15:43.446141 1 iptables.go:111] Setting up masking rules
I1219 15:15:43.454166 1 iptables.go:212] Changing default FORWARD chain policy to ACCEPT
I1219 15:15:43.459792 1 main.go:467] Wrote subnet file to /run/flannel/subnet.env
I1219 15:15:43.459824 1 main.go:471] Running backend.
I1219 15:15:43.460868 1 vxlan_network.go:68] watching for new subnet leases
I1219 15:15:43.461495 1 vxlan_network.go:115] starting vxlan device watcher
I1219 15:15:43.475659 1 main.go:492] Waiting for all goroutines to exit
I1219 15:15:43.487726 1 iptables.go:358] bootstrap done
I1219 15:15:43.498797 1 iptables.go:358] bootstrap done
kubectl events -n kube-flannel kube-flannel-ds-k22qx
LAST SEEN TYPE REASON OBJECT MESSAGE
13m Normal SuccessfulCreate DaemonSet/kube-flannel-ds Created pod: kube-flannel-ds-k22qx
13m Normal Scheduled Pod/kube-flannel-ds-k22qx Successfully assigned kube-flannel/kube-flannel-ds-k22qx to node-01
13m Normal Pulling Pod/kube-flannel-ds-k22qx Pulling image "ghcr.io/flannel-io/flannel-cni-plugin:v1.8.0-flannel1"
13m Normal Pulled Pod/kube-flannel-ds-k22qx Successfully pulled image "ghcr.io/flannel-io/flannel-cni-plugin:v1.8.0-flannel1" in 4.83s (4.83s including waiting). Image size: 4924039 bytes.
13m Normal Created Pod/kube-flannel-ds-k22qx Created container: install-cni-plugin
13m Normal Started Pod/kube-flannel-ds-k22qx Started container install-cni-plugin
13m Normal Pulling Pod/kube-flannel-ds-k22qx Pulling image "ghcr.io/flannel-io/flannel:v0.27.4"
13m Normal Pulled Pod/kube-flannel-ds-k22qx Successfully pulled image "ghcr.io/flannel-io/flannel:v0.27.4" in 15.377s (15.377s including waiting). Image size: 34136824 bytes.
13m Normal Started Pod/kube-flannel-ds-k22qx Started container install-cni
13m Normal Created Pod/kube-flannel-ds-k22qx Created container: install-cni
13m Normal Pulled Pod/kube-flannel-ds-k22qx Container image "ghcr.io/flannel-io/flannel:v0.27.4" already present on machine
13m Normal Created Pod/kube-flannel-ds-k22qx Created container: kube-flannel
13m Normal Started Pod/kube-flannel-ds-k22qx Started container kube-flannel









