Kubernetes-challenge-2

I have been trying to attempt the below challenge since last couple of days.
https://kodekloud.com/topic/kubernetes-challenge-2/

but have been seeing the same issue.

root@controlplane ~ ➜  k apply -f gop-fs-service.yaml 
The connection to the server controlplane:6433 was refused - did you specify the right host or port?

it seems to be not intermittent issue. Any advises here?

Hi @pavan130980

It is because you have not fixed all the API server issues. This must be completed and the icon green when you press check. Nothing will work until you clear that.

You must next fix the worker node, or no pods will deploy.

@pavan130980

  1. Change port no to 6443 in /root/.kube/config
  2. cert name mismatch in /etc/kubernetes/manifests/kube-api-server.yaml file
  • –client-ca-file=/etc/kubernetes/pki/ca.crt

replace this above line