Kubernete cube-dns-under

I tried this doc to install and configure Kubernetes in Ubuntu VM. I finished up to 3/4 and now the kube-dns pod is on standby. How can I understand that? here is the result for kubectl get pods --namespace=kube-systemandkubectl describe pod <pod name>

# kubectl get pods --namespace=kube-system
NAME                              READY     STATUS    RESTARTS   AGE
dummy-2088944543-jk2t2            1/1       Running   0          3h
etcd-ubuntu                       1/1       Running   0          3h
kube-apiserver-ubuntu             1/1       Running   0          3h
kube-controller-manager-ubuntu    1/1       Running   0          3h
kube-discovery-1769846148-h88v4   1/1       Running   0          3h
kube-dns-2924299975-dfp17         0/4       Pending   0          3h
kube-proxy-zdcxw                  1/1       Running   0          3h
kube-scheduler-ubuntu             1/1       Running   0          3h
weave-net-xwfhj                   2/2       Running   0          2h

# kubectl describe pod kube-dns-2924299975-dfp17
Error from server (NotFound): pods "kube-dns-2924299975-dfp17" not found
+4
source share
1 answer

Cause

Most likely, the lack of available computing resources in your cluster.

cluster/addons/dns, , , Deployment , , . , , .

kubectl --namespace=kube-system describe pod kube-dns-2924299975-dfp17 :

Reason                Message
------                -------
FailedScheduling      pod (kube-dns-2924299975-dfp17) failed to fit in any node
fit failure summary on nodes : Insufficient cpu (3)

kubectl describe node <node-name> :

Allocated resources:
  (Total limits may be over 100 percent, i.e., overcommitted.
  CPU Requests  CPU Limits      Memory Requests Memory Limits
  ------------  ----------      --------------- -------------
  320m (8%)     300m (7%)       150Mi (1%)      150Mi (1%)

CPU 100%.

  • / ()
  • , .
+10

Source: https://habr.com/ru/post/1669676/


All Articles