Kubernetes Docker Multi Node Installation Problems

I am trying to follow the instructions listed in:

https://github.com/kubernetes/kubernetes/blob/master/docs/getting-started-guides/docker-multinode/master.md#starting-the-kubernetes-master

but apiServer will not stay on, it will exit with code 255 almost immediately, the last thing in the logs for the container:

F0222 21:45:10.776761 1 server.go:319] Invalid Authentication Config: open /srv/kubernetes/ca.crt: no such file or directory

I tried version 1.2.0-alpha.7 and 1.1.2 of the docker container:

sudo docker run \ --volume=/:/rootfs:ro \ --volume=/sys:/sys:ro \ --volume=/var/lib/docker/:/var/lib/docker:rw \ --volume=/var/lib/kubelet/:/var/lib/kubelet:rw \ --volume=/var/run:/var/run:rw \ --net=host \ --privileged=true \ --pid=host \ -d \ gcr.io/google_containers/hyperkube-amd64:v1.1.2 \ /hyperkube kubelet \ --allow-privileged=true \ --api-servers=http://localhost:8080 \ --v=2 \ --address=0.0.0.0 \ --enable-server \ --hostname-override=127.0.0.1 \ --config=/etc/kubernetes/manifests-multi \ --containerized \ --cluster-dns=10.0.0.10 \ --cluster-domain=cluster.local

The only thing I can find is openssl suggested as a dependency, but I installed it and I still get the error. I seem to assume that I am missing a certificate, but I can not find any documentation on it - any pointers will be appreciated.

+4
source share
2

, 100%, . .

0

, api-, /srv/kebernetes mount folder, ca.key

 openssl genrsa -out ca.key 2048
 openssl req -x509 -new -nodes -key ca.key -subj "/CN=${MASTER_IP}" -days 10000 -out ca.crt

: basic_auth.csv known_tokens.csv, api server docker .

0

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


All Articles