云原生-使用KubeKey安装kubernetes和kubesphere

1.设置的本机hostname

        hostnamectl set-hostname master

   修改后如下图

2.使用KubeKey安装kubesphere

kubesphere的官方链接:Linux 上以 All-in-One 模式安装 KubeSphere

        2.1下载KubeKey               

1. export KKZONE=cn

2. curl -sfL https://get-kk.kubesphere.io | VERSION=v3.0.13 sh -

3. chmod +x kk


        下载好后如下图:

  • 2.2开始安装
  • 若要同时安装 Kubernetes 和 KubeSphere,可参考以下示例命令:
./kk create cluster --with-kubernetes v1.22.12 --with-kubesphere v3.4.0
  • 注意:如果长时间处于:Please wait for the installation to complete 没有反应解决方法,使用以下命令
  • kubectl taint nodes --all node-role.kubernetes.io/master-
    

    出现一下界面表示安装成功:

猜你喜欢

转载自blog.csdn.net/X_Alan/article/details/134836496