Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 340 Bytes

admin-k8src.md

File metadata and controls

19 lines (13 loc) · 340 Bytes

生成kubernetes RC 文件

  1. 完成 kubernetes 的部署之后,需要导入KUBECONFIG到环境变量

    # multinode
    kubez-ansible -i multinode post-deploy
    
    # all-in-one
    kubez-ansible post-deploy
  2. 验证, 得到类似回显

    . /root/admin-k8src.sh
    
    kubectl get node