kube-dns do not work after install the k8s with kubeadm

582 views
Skip to first unread message

Chen Li

unread,
Mar 3, 2017, 2:27:04 AM3/3/17
to kubernetes-sig-cluster-lifecycle
Hi all,

I'm following the guide:https://kubernetes.io/docs/getting-started-guides/kubeadm/ to install k8s on 3 nodes ubuntu 16.04.

Most things looks ok, I can have my deployment work. But the kube-dns do not work: 


NAMESPACE     NAME             DESIRED   CURRENT   UP-TO-DATE   AVAILABLE   AGE
kube-system   kube-dns         1         1         1            0           3h


NAMESPACE     NAME                                                         READY     STATUS              RESTARTS   AGE
kube-system   kube-dns-2924299975-ll2x0                                    0/4       ContainerCreating   0          3h



  FirstSeen LastSeen Count From SubObjectPath Type   Reason Message
  --------- -------- ----- ---- ------------- --------   ------ -------
  40s 40s 1 {default-scheduler } Normal   Scheduled Successfully assigned kube-dns-2924299975-5bm61 to glb-shanghai-jason-performance-004
  39s 2s 19 {kubelet glb-shanghai-jason-performance-004} Warning   FailedSync Error syncing pod, skipping: failed to "SetupNetwork" for "kube-dns-2924299975-5bm61_kube-system" with SetupNetworkError: "Failed to setup network for pod \"kube-dns-2924299975-5bm61_kube-system(29f32fb6-ffe2-11e6-85d7-002590f36a72)\" using network plugins \"cni\": no IP addresses available in network: cbr0; Skipping pod"


kubectl logs kube-dns-2924299975-5bm61 -n kube-system
Error from server (BadRequest): the server rejected our request for an unknown reason (get pods kube-dns-2924299975-5bm61)


Anyone can help me ?

Chen Li

unread,
Mar 3, 2017, 2:31:12 AM3/3/17
to kubernetes-sig-cluster-lifecycle
Also, I created the master node with command: kubeadm init --pod-network-cidr 150.150.0.0/16   --service-cidr 192.168.0.0/16
I don't understand why these pods in the  kube-system namespace has IP start with  173.193 ??????




kubectl get pods -o wide -n kube-system
NAME                                                         READY     STATUS              RESTARTS   AGE       IP                NODE
dummy-2088944543-vvgh7                                       1/1       Running             0          4h        173.193.128.154   glb-shanghai-jason-performance-004
etcd-glb-shanghai-jason-performance-004                      1/1       Running             0          4h        173.193.128.154   glb-shanghai-jason-performance-004
kube-apiserver-glb-shanghai-jason-performance-004            1/1       Running             1          4h        173.193.128.154   glb-shanghai-jason-performance-004
kube-controller-manager-glb-shanghai-jason-performance-004   1/1       Running             0          4h        173.193.128.154   glb-shanghai-jason-performance-004
kube-discovery-1769846148-jl2w8                              1/1       Running             0          4h        173.193.128.154   glb-shanghai-jason-performance-004
kube-dns-2924299975-5bm61                                    0/4       ContainerCreating   0          7m        <none>            glb-shanghai-jason-performance-004
kube-proxy-bwkfs                                             1/1       Running             0          4h        173.193.128.154   glb-shanghai-jason-performance-004
kube-proxy-gwgrm                                             1/1       Running             1          4h        173.193.128.142   glb-shanghai-jason-performance-005
kube-proxy-tp9lt                                             1/1       Running             0          4h        174.37.107.68     glb-shanghai-jason-performance-006
kube-scheduler-glb-shanghai-jason-performance-004            1/1       Running             0          4h        173.193.128.154   glb-shanghai-jason-performance-004
Reply all
Reply to author
Forward
0 new messages