$:# kubectl get ns
Unable to connect to the server: x509: certificate is valid ...
$:#
Enter fullscreen mode
Exit fullscreen mo...
For further actions, you may consider blocking this person and/or reporting abuse
Thanks, it helped me a lot. I need to add a note:
If using Kubernetes < v1.15:
kubeadm config upload from-file --config kubeadm.yaml
For Kubernetes version >= v1.15:
kubeadm init phase upload-config kubeadm --config kubeadm.yaml