Closed ramoct15 closed 4 years ago
open port 6443 in network security rules
Got the issue resolved already.
Thank you
On Sat, 8 Aug, 2020, 7:00 pm srmanikanta, notifications@github.com wrote:
open port 6443 in network security
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/QT-DevOps/AzureIssues/issues/92#issuecomment-670929420, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO536LJN2PBK2NVXJ3KYXD3R7VHOZANCNFSM4OXN5ECA .
Unable to map Working node to Master Node in the kubectl cluster
Steps : (Master & Working Node) sudo apt-get update sudo apt-get install docker.io sudo apt-get update && sudo apt-get install -y apt-transport-https curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - cat <<EOF | sudo tee /etc/apt/sources.list.d/kubernetes.list deb https://apt.kubernetes.io/ kubernetes-xenial main EOF sudo apt-get update sudo apt-get install -y kubelet kubeadm kubectl sudo apt-mark hold kubelet kubeadm kubectl
Master Node (Root User) : Kubeadm init
Master Node (Normal User) : mkdir -p $HOME/.kube sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config sudo chown $(id -u):$(id -g) $HOME/.kube/config
MasterNode (Normal User) : Pod Network connectivity kubectl apply -f "https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\n')"
Working Node (Root User) : Executed below command
kubeadm join 10.0.0.7:6443 --token 4l2gx7.q82xnl79v339hyyf \ --discovery-token-ca-cert-hash sha256:e2b4454d23feec2a8184fd1c3c6c1b71ff3c3e8c39f2963a20a983f5feb16b7d
Note : Tried reset kubeadm reset -f (Master Node) and performed kubeadm init ---> but below issue still exists Issue : root@node:~# kubeadm join 10.0.0.7:6443 --token 4l2gx7.q82xnl79v339hyyf \
Kindly check and update.