当前位置: 首页 > Linux

InstallKubeSphereinAll-in-OnemodeonLinux

时间:2023-04-06 06:20:16 Linux

InstallKubeSphereinAll-in-OnemodeonLinuxInstallKubeSphereinAll-in-OnemodeonLinux背景知识KubeSphereisacloud-nativeapplicationbuiltontopofKubernetes分布式运行系统完全开源,支持多云多集群管理,提供全栈IT自动化运维能力,简化公司DevOps工作流程。...作为一个全栈多租户容器平台,KubeSphere提供了一个运维友好的向导式界面,帮助企业快速构建一个功能强大、功能丰富的容器云平台。KubeSphere是一个分布式操作系统,用于构建在Kubernetes上的云原生应用程序。完全开源,支持多云多集群管理,提供全栈IT自动化运维能力,简化公司DevOps工作流程。...作为全栈多租户容器平台,KubeSphere提供运维友好的引导式操作界面,帮助企业快速构建功能强大、功能丰富的容器云平台。一、安装dockerOne,安装dockerroot@hello:~#curl-fsSLhttps://get.docker.com|bash-sdocker--mirrorAliyun-----略----root@hello:~#docker-vDockerversion20.10.9,buildc2ea9bcroot@hello:~#二,下载安装KubeKey二、从源下载安装KubeKey代码生成二次制作文件从源代码生成二进制文件root@hello:~#gitclonehttps://github.com/kubesphere/kubekey.gitCloninginto'kubekey'...remote:Enumeratingobjects:13438,done.remote:Countingobjects:100%(899/899),done.remote:Compressingobjects:100%(238/238),done.remote:Total13438(delta745),reused662(delta661),pack-reused12539接收对象:100%(13438/13438),34.95MiB|10.14MiB/s,完成。解析增量:100%(5424/5424),完成。root@hello:~#root@hello:~#cdkubekeyroot@hello:~/kubekey#root@hello:~/kubekey#root@hello:~/kubekey#./build.sh-p----slightly----注意:注意:在构建之前,需要先安装Docker。如果无法访问https://proxy.golang.org/,比如在墙内,请执行build.sh-p。构建前需要先安装Docker。如果无法访问https://proxy.golang.org/,比如在防火墙内,请执行build.sh-p.三、安装所需工具三、安装所需工具root@hello:~#aptinstallsudo-yroot@hello:~#aptinstallcurl-yroot@hello:~#aptinstallopenssl-yroot@hello:~#aptinstallebtables-yroot@hello:~#aptinstallsocat-yroot@hello:~#aptinstallipset-yroot@hello:~#aptinstallconntrack-yroot@hello:~#aptinstallnfs-common-y四、创建集群四、创建集群同时安装Kubernetes和KubeSphereInstallKubernetesandKubeSphereat同时root@hello:~#exportKKZONE=cnroot@hello:~#/root/kubekey/output/kk创建集群--with-kubernetesv1.20.4--with-kubespherev3.1.1+-------+------+-----+--------+---------+--------+-------+------------+--------+------------+-------------+----------------+------------+|姓名|须藤|卷曲|打开SSL|电子表格|搜索|设置|跟踪|泊坞窗|nfs客户端|中央政治局常委h客户端|glusterfs客户端|时间|+------+-----+-----+---------+---------+-------+--------+------------+--------+------------+-------------+----------------+------------+|你好|是|是|是|是|是|是|是|20.10.9|是|||UTC02:50:57|+--------+------+------+--------+----------+--------+--------+------------+--------+-----------+------------+----------------+------------+这是对您的环境的简单检查。在安装之前,您应该确保您的机器满足https://github.com/kubesphere/kubekey#requirements-and-recommendations中指定的所有要求是否继续此安装?[yes/no]:yesINFO[02:51:00UTC]DownloadingInstallationFilesINFO[02:51:00UTC]Downloadingkubeadm...----略----五、验证安装结果五、验证安装结果root@hello:~#kubectllogs-nkubesphere-system$(kubectlgetpod-nkubesphere-system-lapp=ks-install-ojsonpath='{.items[0].metadata.name}')-f----省略----#########################################################欢迎来到KubeSphere!#######################################################控制台:http://192.168.1.20:30880账号:admin密码:P@88w0rd注意事项:1、登录控制台后,请在“集群管理”中查看服务组件的监控状态。如果有任何服务没有就绪,请耐心等待,直到所有组件都启动并运行。2.登录后请修改默认密码######################################################https://kubesphere.io2021-10-1103:04:53#########################################################注意:输出信息将显示IP地址和web控制台的端口号,默认的NodePort是30880现在可以通过:30880使用默认账号和密码(admin/P@88w0rd)访问控制台,输出信息会显示Web控制台的IP地址和端口号。默认的NodePort为30880,现在可以使用默认的帐号和密码(admin/P@88w0rd)通过访问控制台:30880Linux运维交流社区Linux运维交流社区,互联网新闻和技术交流。39个原创内容公众号