KubeSphere簡介
- KubeSphere 是在 Kubernetes 之上構建的開源的企業級容器平臺,提供簡單易用的操作界面以及嚮導式操作方式,在降低用戶使用容器調度平臺學習成本的同時,極大減輕開發、測試、運維的日常工作的複雜度,旨在解決 Kubernetes 本身存在的存儲、網絡、安全和易用性等痛點。除此之外,平臺已經整合並優化了多個適用於容器場景的功能模塊,以完整的解決方案幫助企業輕鬆應對敏捷開發與自動化運維、微服務治理、多租戶管理、工作負載和集羣管理、服務與網絡管理、應用編排與管理、鏡像倉庫管理和存儲管理等業務場景
- KubeSphere官網https://kubesphere.io
- 官方文檔參考https://kubesphere.com.cn/docs/zh-CN/installation/intro/
KubeSphere多節點安裝
- 主機配置最少2c4G
主機 IP | 主機名 | 集羣角色 |
---|---|---|
192.168.10.221 | master | master,etcd |
192.168.10.222 | node1 | node |
192.168.10.223 | node2 | node |
- 下載 KubeSphere 2.1.1 安裝包至待安裝機器,進入 conf 目錄。
curl -L https://kubesphere.io/download/stable/v2.1.1 > installer.tar.gz
&& tar -zxf installer.tar.gz && cd kubesphere-all-v2.1.1/conf - 編輯主機配置文件 conf/hosts.ini
[all]
master ansible_connection=local ip=192.168.10.221
node1 ansible_host=192.168.10.222 ip=192.168.10.222 ansible_ssh_pass=passwd
node2 ansible_host=192.168.10.223 ip=192.168.10.223 ansible_ssh_pass=passwd
[kube-master]
master
[kube-node]
node1
node2
[etcd]
master
[k8s-cluster:children]
kube-node
kube-master
- 進入安裝目錄,建議使用 root 用戶執行 install.sh 安裝腳本:
cd …
cd scripts
./install.sh - 輸入數字 2 選擇第二種 Multi-node 模式開始部署,安裝程序會提示您的環境是否前提條件,若滿足請輸入 “yes” 開始安裝。
- 安裝出現如下報錯,修改/etc/yum.repos.d/epel.repo文件,gpgcheck=1改爲gpgcheck=0
Couldn’t open file /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
- 重新安裝後,安裝成功
- 瀏覽器輸入ip:port訪問,360瀏覽器需要換成極速模式,不然登錄按鈕是點不了的
http://192.168.10.221:30880
- 輸入賬號admin,初始密碼P@88w0rd登錄