echo "${KUBECONFIG_DATA}" | base64 -d > ~/.kube/config chmod 600 ~/.kube/config # 把 kube 配置转为 base64 编码输出,方便后续使用 # cat ~/.kube/config | base64 -w 0