coredns been in Pending state

coredns has been in a state ContainerCreating

1. Problem Description

coresdns state has been in a state ContainerCreating

Events:
  Type     Reason                  Age                  From                              Message
  ----     ------                  ----                 ----                              -------
  Warning  FailedScheduling        11m (x6 over 16m)    default-scheduler                 0/1 nodes are available: 1 node(s) had taints that the pod didn't tolerate.
  Normal   Scheduled               11m                  default-scheduler                 Successfully assigned kube-system/coredns-5c98db65d4-hb7hd to izm5e3cntl0pztm4dj3phrz
  Warning  FailedCreatePodSandBox  11m                  kubelet, izm5e3cntl0pztm4dj3phrz  Failed create pod sandbox: rpc error: code = Unknown desc = [failed to set up sandbox container "fc6ab00e36704719d84c6d8e7cb9135d10b5d255f290b379678a3df1b312c246" network for pod "coredns-5c98db65d4-hb7hd": NetworkPlugin cni failed to set up pod "coredns-5c98db65d4-hb7hd_kube-system" network: failed to find plugin "loopback" in path [/opt/cni/bin], failed to clean up sandbox container "fc6ab00e36704719d84c6d8e7cb9135d10b5d255f290b379678a3df1b312c246" network for pod "coredns-5c98db65d4-hb7hd": NetworkPlugin cni failed to teardown pod "coredns-5c98db65d4-hb7hd_kube-system" network: failed to find plugin "portmap" in path [/opt/cni/bin]]
  Normal   SandboxChanged          102s (x48 over 11m)  kubelet, izm5e3cntl0pztm4dj3phrz  Pod sandbox changed, it will be killed and re-created.

coredns will always be in ContainerCreating state, it can be seen from the event, because the bin file yet.

 network: failed to find plugin "loopback" in path [/opt/cni/bin]

2. Solution

Installation cni, as an example here to flannel

1. mkdir -p $GOPATH/src/github.com/containernetworking/plugins

2. git clone https://github.com/containernetworking/plugins.git

3. ./build_linux.sh

4. If the / opt / cni / bin absence
   mdkir -p /opt/cni/bin
   cp bin/* /opt/cni/bin

5. ls bin/
   bandwidth  dhcp      flannel      host-local  loopback  portmap  sbr     tuning
   bridge     firewall  host-device  ipvlan      macvlan   ptp      static  vlan

Intelligent Recommendation

Pod has been in the Pending State and modifying StatefulSet Some are not allowed to modify

1. Problem: Pod has been in the Pending State Problem investigation Test results: meaning memory and CPU Second, the first step in the first step: modify the memory and the CPU error: It means that in...

k8s reported an error: pod status is pending, coredns status is pending solution

Error 1: The status of coredns is pending Reason 1: The flannel image on the master failed to pull, resulting in the failure to obtain the resolved IP Solution: Reason 2: There is no local resolution,...

Db2 reorg pending state

Error Operation not allowed for reason code “7” on table “IBMCONSOLE.T1”… SQLCODE=-668, SQLSTATE=57016, DRIVER=4.27.25 The table is in the reorg pending state. This can ...

Asynchronous processing module or program has been completed, but there were still an asynchronous operation is pending state

Asynchronous processing module or program has been completed, but there were still an asynchronous operation is pending state When writing webapi, the emergence of "asynchronous processing module...

Kubernetes CoreDNS state is CrashLoopBackOff Solutions

Found CoreDNS state is CrashLoopBackOff check the detail information When you find the reason when deployed in Kubernetes CoreDNS Pod detected in circulation, CoreDNS Pod will begin "CrashLoopBac...

More Recommendation

Kubernetes CoreDNS state is CrashLoopBackOff error

View the status met coredns appear crashlookbackoff, first of all we have to troubleshoot, for whatever reason, to view details coredns, and logs Here can be resolved in accordance with their own reas...

Solve the K8S Flannel network Contra: imagePullbackoff and CoredNS status for pending

After the K8S is installed, it has always been a state of Noready. View Pod is because Kube-Flannel-DS-ZW4H8 init failed Check log Probably Pull Quay.io/coreos/flannel :v0.14.0 can't pull down Because...

gitlab-runner has been in pending

Title gitlab-runner has been in pending...

kubeflow Pods stuck in Pending state

The problem is as shown View detail I found that PVC is not binding solve: View PVC View PVC description   There are three pods that have Persistent Volume Claims (PVCs) that will get stuck in pe...

CoreDNS

CoreDNS is the successor to SkyDNS and can communicate with many backends (etcd, k8s, etc.). CoreDNS is very flexible, and its flexibility benefits from its rich plug-ins (https://coredns.io/plugins/ ...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top