kubeadm get discovery-token-ca-cert-hash command openssl code example
Example: kubeadm get discovery-token-ca-cert-hash command openssl
openssl x509 -pubkey -in /etc/kubernetes/pki/ca.crt | openssl rsa -pubin -outform der 2>/dev/null | openssl dgst -sha256 -hex | sed 's/^.* //'