About k8s deployment error resolution
- Error message
Warning FailedCreatePodSandBox 89s kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = [failed to set up sandbox container "1c97ad2710e2939c0591477f9d6dde8e0d7d31b3fbc138a7fa38aaa657566a9a" network for pod "coredns-7f89b7bc75-qg924": networkPlugin cni failed to set up pod "coredns-7f89b7bc75-qg924_kube-system" network: 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"), failed to clean up sandbox container "1c97ad2710e2939c0591477f9d6dde8e0d7d31b3fbc138a7fa38aaa657566a9a" network for pod "coredns-7f89b7bc75-qg924": networkPlugin cni failed to teardown pod "coredns-7f89b7bc75-qg924_kube-system" network: 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")]
- Performance status
[root@linux03 ~]# kubectl get pods -n kube-system
NAME READY STATUS RESTARTS AGE
coredns-7f89b7bc75-jzs26 0/1 ContainerCreating 0 63s
coredns-7f89b7bc75-qg924 0/1 ContainerCreating 0 63s
# coredns cannot run
- Change calico.yaml
# Cluster type to identify the deployment type
- name: CLUSTER_TYPE
value: "k8s,bgp"
# New below
- name: IP_AUTODETECTION_METHOD
value: "interface=ens192"
# ens192 is the local NIC name
- kubectl apply -f calico.yaml
- Check that it is running
[root@linux03 ~]# kubectl get pods -n kube-system
NAME READY STATUS RESTARTS AGE
calico-kube-controllers-69496d8b75-2nm5k 1/1 Running 0 23m
calico-node-8wfk9 1/1 Running 0 23m
calico-node-9vn4v 1/1 Running 0 23m
calico-node-qm8s2 1/1 Running 0 23m
coredns-7f89b7bc75-jzs26 1/1 Running 0 26m
coredns-7f89b7bc75-qg924 1/1 Running 0 26m
etcd-linux03 1/1 Running 0 26m
kube-apiserver-linux03 1/1 Running 0 26m
kube-controller-manager-linux03 1/1 Running 0 26m
kube-proxy-29lcf 1/1 Running 0 25m
kube-proxy-c29wz 1/1 Running 0 26m
kube-proxy-lpgrr 1/1 Running 0 25m
kube-scheduler-linux03 1/1 Running 0 26m
Read More:
- [kubernetes] the pod instance of calico node always reports an error and restarts
- [Solved] pod Error: back off restarting failed container
- Readiness probe failed: calico/node is not ready: BIRD is not ready: Error querying BIRD: unable to
- git clone,pod install error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
- Error from server (BadRequest): a container name must be specified for pod
- [Solved] failed to set bridge addr: “cni0“ already has an IP address different from xxxx
- calico Error: Calico requires net.ipv4.conf.all.rp_filter to be set to 0 or 1
- Github Clone Error: RPC failed; result=56, HTTP code=200
- [Solved] docker Error response from daemon OCI runtime create failed container_linux.go380
- [Solved] Error response from daemon: OCI runtime create failed: container with id exists: xxzxxxxxxxx
- [Solved] docker failed to solve: failed to solve with frontend dockerfile.v0: failed to create LLB definition
- [Solved] Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050
- [Solved] Tensorflow Error: failed to create cublas handle: CUBLAS_STATUS_ALLOC_FAILED
- [Solved] Win nvidia-smi Cann’t Use,Failed to initialize NVML: Unknown Error
- [Solved] Multiple Yum update error: Failed to set locale, defaulting to C
- [Solved] Kubernetes Error: failed to list *core.Secret: unable to transform key
- [Solved] kubectl top pod error: error: Metrics API not available
- [INS-06006] Passwordless SSH connectivity not set up [Solved]
- [Solved] pod CDN: trunk Repo update failed – 56 error(s):
- [Solved] Docker startup container error: permission denied””: unknown.