coredns / deployment

Scripts, utilities, and examples for deploying CoreDNS.
Apache License 2.0
549 stars 535 forks source link

coredns is stuck in ContainerCreating status #275

Closed phyljh closed 2 years ago

phyljh commented 2 years ago

coredns is stuck as below. Please help me~~!!! XXXX:~$ kubectl get pods -n kube-system NAME READY STATUS RESTARTS AGE coredns-6d4b75cb6d-2425h 0/1 ContainerCreating 0 16m coredns-6d4b75cb6d-j2wjf 0/1 ContainerCreating 0 16m etcd-alienware-m15 1/1 Running 4 16m kube-apiserver-alienware-m15 1/1 Running 4 16m kube-controller-manager-alienware-m15 1/1 Running 4 16m kube-proxy-dmnp8 1/1 Running 0 16m kube-scheduler-alienware-m15 1/1 Running 4 16m weave-net-k4xgx 2/2 Running 0 12m


XXXX~$ kubectl describe pods coredns-6d4b75cb6d-j2wjf -n kube-system Name: coredns-6d4b75cb6d-j2wjf Namespace: kube-system Priority: 2000000000 Priority Class Name: system-cluster-critical Node: alienware-m15/192.168.0.121 Start Time: Fri, 03 Jun 2022 19:14:43 +0900 Labels: k8s-app=kube-dns pod-template-hash=6d4b75cb6d Annotations: Status: Pending IP:
IPs: Controlled By: ReplicaSet/coredns-6d4b75cb6d Containers: coredns: Container ID:
Image: k8s.gcr.io/coredns/coredns:v1.8.6 Image ID:
Ports: 53/UDP, 53/TCP, 9153/TCP Host Ports: 0/UDP, 0/TCP, 0/TCP Args: -conf /etc/coredns/Corefile State: Waiting Reason: ContainerCreating Ready: False Restart Count: 0 Limits: memory: 170Mi Requests: cpu: 100m memory: 70Mi Liveness: http-get http://:8080/health delay=60s timeout=5s period=10s #success=1 #failure=5 Readiness: http-get http://:8181/ready delay=0s timeout=1s period=10s #success=1 #failure=3 Environment: Mounts: /etc/coredns from config-volume (ro) /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-xzntg (ro) Conditions: Type Status Initialized True Ready False ContainersReady False PodScheduled True Volumes: config-volume: Type: ConfigMap (a volume populated by a ConfigMap) Name: coredns Optional: false kube-api-access-xzntg: Type: Projected (a volume that contains injected data from multiple sources) TokenExpirationSeconds: 3607 ConfigMapName: kube-root-ca.crt ConfigMapOptional: DownwardAPI: true QoS Class: Burstable Node-Selectors: kubernetes.io/os=linux Tolerations: CriticalAddonsOnly op=Exists node-role.kubernetes.io/control-plane:NoSchedule node-role.kubernetes.io/master:NoSchedule node.kubernetes.io/not-ready:NoExecute op=Exists for 300s node.kubernetes.io/unreachable:NoExecute op=Exists for 300s Events: Type Reason Age From Message


Normal Scheduled 19m default-scheduler Successfully assigned kube-system/coredns-6d4b75cb6d-j2wjf to alienware-m15 Warning FailedCreatePodSandBox 19m kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "245dc659076edff594dc273e9c07079b47fd504ac1800c5295c7b6a8c06539d7": error getting ClusterInformation: Get "https://[10.96.0.1]:443/apis/crd.projectcalico.org/v1/clusterinformations/default": x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "kubernetes") Warning FailedCreatePodSandBox 19m kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "cb59dc70a763dcff9587d04440c81575637eb118c334bab34999a306fd5d05c8": error getting ClusterInformation: Get "https://[10.96.0.1]:443/apis/crd.projectcalico.org/v1/clusterinformations/default": x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "kubernetes") Warning FailedCreatePodSandBox 18m kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "bf173b1abca1df5b96d69b28a0ecbc56d5ac6beb5f7c19571b6f02b0d10c8573": error getting ClusterInformation: Get "https://[10.96.0.1]:443/apis/crd.projectcalico.org/v1/clusterinformations/default": x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "kubernetes") Warning FailedCreatePodSandBox 18m kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "9fb96da7f956acfebd89ec4db8608475366ffdd17337a2c79c5e87c278d06ab4": error getting ClusterInformation: Get "https://[10.96.0.1]:443/apis/crd.projectcalico.org/v1/clusterinformations/default": x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "kubernetes") Warning FailedCreatePodSandBox 18m kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "78a8d628664f1a0e3d686c4632601221753b09f1ff6c6abf03a5472dd19a9411": error getting ClusterInformation: Get "https://[10.96.0.1]:443/apis/crd.projectcalico.org/v1/clusterinformations/default": x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "kubernetes") Warning FailedCreatePodSandBox 18m kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "759c9c6ae9cdf41391db6cc01b1819df8d0295067610b6376baa524e92a61c0c": error getting ClusterInformation: Get "https://[10.96.0.1]:443/apis/crd.projectcalico.org/v1/clusterinformations/default": x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "kubernetes") Warning FailedCreatePodSandBox 17m kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "6422f8f0f09fcd0375101839520d2f9e2c9d04c23877853f686c0e1598f88c4c": error getting ClusterInformation: Get "https://[10.96.0.1]:443/apis/crd.projectcalico.org/v1/clusterinformations/default": x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "kubernetes") Warning FailedCreatePodSandBox 17m kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "df458fc88a220ed14921956b5da8ffd34c53fba7cf0442e574e9ae5f9ef70a9c": error getting ClusterInformation: Get "https://[10.96.0.1]:443/apis/crd.projectcalico.org/v1/clusterinformations/default": x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "kubernetes") Warning FailedCreatePodSandBox 17m kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "4effffeaa6ce0f5a8a91ce1390f2843fec78f68664ffb3e1641fb230c430a1c0": error getting ClusterInformation: Get "https://[10.96.0.1]:443/apis/crd.projectcalico.org/v1/clusterinformations/default": x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "kubernetes") Warning FailedCreatePodSandBox 4m16s (x61 over 17m) kubelet (combined from similar events): Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "83db114211a2922e28a2aa83811d4fb6713e5d82ce33a0a510d90d413c6525e4": error getting ClusterInformation: Get "https://[10.96.0.1]:443/apis/crd.projectcalico.org/v1/clusterinformations/default": x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "kubernetes")

phyljh commented 2 years ago

I submitted by mistake