I have a SNO cluster and everytime there is a power failure or the server powers down abruptly, I am not able to login to the api server after restartng and gets the following error when I try:
$ oc login -udeveloper -pdeveloper https://api.sno.example.com:6443
error: dial tcp 192.168.22.100:6443: connect: connection refused - verify you have provided the correct host and port and that the server is currently running.
$ oc status
The connection to the server api.sno.example.com:6443 was refused - did you specify the right host or port?
If I access the node via the console using the core user and run (netstat -nltp | grep kubeapi-server), it shows that kube-apiserver is not running.
How dow I restart this process and get it running again?
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.