Hi Kalgi after following above steps it works but unfortunately, it is giving me below error.
The connection to the server 172.30.250.79:6443 was refused - did you specify the right host or port?
And noticed that while running kubectl get pods -o wide --all-namespaces
kube-system coredns-86c58d9df4-69zlx 0/1 Evicted 0 5d23h <none> kmaster <none> <none>
kube-system coredns-86c58d9df4-bt6lr 0/1 Error 69 44h <none> kmaster <none> <none>
kube-system coredns-86c58d9df4-f2wgx 0/1 Evicted 0 45h <none> kmaster <none> <none>
kube-system coredns-86c58d9df4-hr6lk 0/1 Evicted 0 35m <none> kmaster <none> <none>
kube-system coredns-86c58d9df4-jhrlt 0/1 Evicted 0 47h <none> kmaster <none> <none>
kube-system coredns-86c58d9df4-mgt8q 0/1 Evicted 0 45h <none> kmaster <none> <none>
kube-system coredns-86c58d9df4-qxgs6 0/1 Evicted 0 6d20h <none> kmaster <none> <none>
kube-system coredns-86c58d9df4-r2lg7 0/1 Evicted 0 44h <none> kmaster <none> <none>
kube-system coredns-86c58d9df4-s7kfr 0/1 Evicted 0 6d20h <none> kmaster <none> <none>
kube-system coredns-86c58d9df4-tr9cj 0/1 Evicted 0 47h <none> kmaster <none> <none>
kube-system coredns--XXXXX are in evicted state.