Connection refused with microk8s

I am running a single cluster node and when i trigger exec command to enter in the pod i got the below error

microk8s kubectl exec -it x-pod bash
kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] – [COMMAND] instead.
Defaulted container “x-pod” out of: x-pod, init-wait-for-dependencies (init)
Error from server: error dialing backend: dial tcp 10.233.41.189:10250: connect: connection refused.