获取kubeadm join参数:kubeadm token create --print-join-command
[root@k8s-node-vm0meu-32oinbfbix ~]# kubectl cluster-info Kubernetes master is running at https://114.67.245.123:6443 KubeDNS is running at https://114.67.245.123:6443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy Metrics-server is running at https://114.67.245.123:6443/api/v1/namespaces/kube-system/services/https:metrics-server:/proxyh获取
获取secret中的值
echo Password : $(kubectl get secret --namespace middlewares elastic-credentials -o jsonpath="{.data.password}" | base64 --decode)