Kubernetes service stops after one node is disconnected

I am creating a small Kubernetes cluster using VM (master) and 3 bare metal servers (all running Ubuntu 14.04). I followed Kubernetes installed a tutorial for Ubuntu . Each open metal server also has 2T of disk space exported using Ceph 0.94.5 . Everything worked fine, but when one node failed to start (it could not mount the partition), the only service that the cluster provided also stopped working. I run a few commands:

$ kubectl get nodes
NAME        LABELS                             STATUS
10.70.2.1   kubernetes.io/hostname=10.70.2.1   Ready,SchedulingDisabled
10.70.2.2   kubernetes.io/hostname=10.70.2.2   Ready
10.70.2.3   kubernetes.io/hostname=10.70.2.3   NotReady
10.70.2.4   kubernetes.io/hostname=10.70.2.4   Ready

It just showed that I have a node.

$ kubectl get pods
NAME               READY     STATUS    RESTARTS   AGE
java-mysql-5v7iu   1/1       Running   1          5d
java-site-vboaq    1/1       Running   0          4d

$ kubectl get services
NAME         LABELS                                    SELECTOR          IP(S)          PORT(S)
java-mysql   name=java-mysql                           name=java-mysql   ***.***.3.12   3306/TCP
java-site    name=java-site                            name=java-site    ***.***.3.11   80/TCP
kubernetes   component=apiserver,provider=kubernetes   <none>            ***.***.3.1    443/TCP

He showed that all the pods and services are working fine. However, I could not connect to one of the containers ( java-site-vboaq):

$ kubectl exec java-site-vboaq -i -t -- bash
error: Error executing remote command: Error executing command in container: container not found ("java-site")

, node:

$ kubectl describe pod java-mysql-5v7iu
Image(s):           mysql:5
Node:               10.70.2.2/10.70.2.2
Status:             Running

$ kubectl describe pod java-site-vboaq
Image(s):           javasite-img
Node:               10.70.2.2/10.70.2.2
Status:             Running

, node (10.70.2.3), .

? node , , Kubernetes . , node (, ), 100% ?

+4
2

: 1) Ceph , : , Ceph Ceph ? , , , K8s.

2) ( , 1.0.6 , ) , , node, . K8s, (, , )

3) etcd node 3, 2 , , .

+1

a node , node . 5 , .

, node , , kubelet, - node kubectl 5 , .

0

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


All Articles