Skip to content

cenots 7: minikube v1.33.1 faces coredns CrashLoopBackOff. #18950

Closed
@charleech

Description

@charleech

What Happened?

minikube on CentOS 7.7 does not work.

Software information

$ minikube version
minikube version: v1.33.1
commit: 5883c09216182566a63dff4c326a6fc9ed2982ff
$ docker version
Client: Docker Engine - Community
 Version:           26.1.2
 API version:       1.45
 Go version:        go1.21.10
 Git commit:        211e74b
 Built:             Wed May  8 14:01:02 2024
 OS/Arch:           linux/amd64
 Context:           default

Server: Docker Engine - Community
 Engine:
  Version:          26.1.2
  API version:      1.45 (minimum version 1.24)
  Go version:       go1.21.10
  Git commit:       ef1912d
  Built:            Wed May  8 13:59:55 2024
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.31
  GitCommit:        e377cd56a71523140ca6ae87e30244719194a521
 runc:
  Version:          1.1.12
  GitCommit:        v1.1.12-0-g51d5e94
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

Steps

$ export MINIKUBE_HOME=/tmp/minikube_home

$ minikube start \
   --driver=docker \
   --network minikube
😄  minikube v1.33.1 on Centos 7.7.1908
    ▪ MINIKUBE_IN_STYLE=true
    ▪ MINIKUBE_HOME=/tmp/minikube_home
✨  Using the docker driver based on user configuration
📌  Using Docker driver with root privileges
👍  Starting "minikube" primary control-plane node in "minikube" cluster
🚜  Pulling base image v0.0.44 ...
🔥  Creating docker container (CPUs=2, Memory=8000MB) ...
❗  This container is having trouble accessing https://registry.k8s.io
💡  To pull new external images, you may need to configure a proxy: https://minikube.sigs.k8s.io/docs/reference/networking/proxy/
🐳  Preparing Kubernetes v1.30.0 on Docker 26.1.1 ...
    ▪ Generating certificates and keys ...
    ▪ Booting up control plane ...
    ▪ Configuring RBAC rules ...
🔗  Configuring Calico (Container Networking Interface) ...
🔎  Verifying Kubernetes components...
    ▪ Using image gcr.io/k8s-minikube/storage-provisioner:v5
🌟  Enabled addons: storage-provisioner, default-storageclass
🏄  Done! kubectl is now configured to use "minikube" cluster and "default" namespace by default

The coredns status is CrashLoopBackOff

$  kubectl get pod -A -o wide

NAMESPACE     NAME                               READY   STATUS             RESTARTS     AGE   IP             NODE       NOMINATED NODE   READINESS GATES
kube-system   coredns-7db6d8ff4d-mp9pd           0/1     CrashLoopBackOff   2 (3s ago)   26s   10.244.0.2     minikube   <none>           <none>
kube-system   etcd-minikube                      1/1     Running            0            39s   192.188.49.2   minikube   <none>           <none>
kube-system   kube-apiserver-minikube            1/1     Running            0            39s   192.188.49.2   minikube   <none>           <none>
kube-system   kube-controller-manager-minikube   1/1     Running            0            39s   192.188.49.2   minikube   <none>           <none>
kube-system   kube-proxy-cknfg                   1/1     Running            0            26s   192.188.49.2   minikube   <none>           <none>
kube-system   kube-scheduler-minikube            1/1     Running            0            39s   192.188.49.2   minikube   <none>           <none>
kube-system   storage-provisioner                1/1     Running            0            38s   192.188.49.2   minikube   <none>           <none>

describe pod

Events:
  Type     Reason     Age                   From               Message
  ----     ------     ----                  ----               -------
  Normal   Scheduled  17m                   default-scheduler  Successfully assigned kube-system/coredns-7db6d8ff4d-mp9pd to minikube
  Normal   Created    16m (x4 over 17m)     kubelet            Created container coredns
  Normal   Started    16m (x4 over 17m)     kubelet            Started container coredns
  Normal   Pulled     16m (x5 over 17m)     kubelet            Container image "registry.k8s.io/coredns/coredns:v1.11.1" already present on machine
  Warning  BackOff    2m21s (x82 over 17m)  kubelet            Back-off restarting failed container coredns in pod coredns-7db6d8ff4d-mp9pd_kube-system(fbae1fb2-d70f-4683-ae4b-2b11dd0e7d14)

Try to print the log

$ kubectl -n kube-system logs -f coredns-7db6d8ff4d-mp9pd
Listen: listen tcp :53: bind: permission denied

Attach the log file

log.txt

Operating System

Redhat/Fedora

Driver

Docker

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/bugCategorizes issue or PR as related to a bug.priority/important-soonMust be staffed and worked on either currently, or very soon, ideally in time for the next release.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions