본문 바로가기

kubernetes, helm, rancher

http://localhost:10248/healthz: dial tcp [::1]:10248: connect: connection refused error while installing kubernetes

https://github.com/kubernetes/kubeadm/issues/1893

 

The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with error: Get http://localhost:10248/healthz: dial tc

i have installed kubernetes on rhel7.4 when i run kubeadm init i am getting error like The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with error: Get http://localh...

github.com

sudo mkdir /etc/docker
cat <<EOF | sudo tee /etc/docker/daemon.json
{
"exec-opts": ["native.cgroupdriver=systemd"],
"log-driver": "json-file",
"log-opts": {
"max-size": "100m"
},
"storage-driver": "overlay2"
}
EOF

sudo systemctl enable docker
sudo systemctl daemon-reload
sudo systemctl restart docker

 

위와 같이 실행하고나서 

[ERROR Port-6443]: Port 6443 is in use
[ERROR Port-10251]: Port 10251 is in use
[ERROR Port-10252]: Port 10252 is in use

위와 같은 에러가 뜬다면 kubeadm reset을 하고 다시 init을 해줘야한다.(in master)

또한 아래와 같은 에러가 뜨면 역시 kubeadm reset을 해야한다.(in node)

/etc/kubernetes/pki/ca.crt already exists

 

https://github.com/kubernetes/kubeadm/issues/1145

 

Problem with Init pod · Issue #1145 · kubernetes/kubeadm

Hi all ! I have problem with execute command uadmin@kubernetes-master:~$ sudo kubeadm init --pod-network-cidr=10.244.0.0/16 --kubernetes-version v1.12.0 [sudo] password for uadmin: [init] using Kub...

github.com