KubeSphere 3.3.2 install
--在 Kubernetes 上最小化安裝 KubeSphere
--
kubesphere v3.3.2 install
kubectl apply -f kubesphere-installer.yaml
kubectl apply -f cluster-configuration.yaml
檢查安裝日誌:
kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l 'app in (ks-install, ks-installer)' -o jsonpath='{.items[0].metadata.name}') -f
[root@master ~]# kubectl get svc/ks-console -n kubesphere-system
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
ks-console NodePort 10.111.186.1 <none> 80:30880/TCP 23m
驗證:
ip address:30880/
使用預設帳戶和密碼 (admin/P@88w0rd) 訪問 Web 控制檯。
--報錯
request to failed, reason: getaddrinfo EAI_AGAIN ks-apiserver
問題解決方法:
kubectl -n kube-system edit cm coredns -o yaml
解決:註釋掉 forward,關閉轉發
--檢視日誌
kubectl logs ks-console-f4549b894-fhs4z -n kubesphere-system |less
通常情況下,vm.dirty_ratio的值要大於vm.dirty_background_ratio的值。
# sysctl -w vm.dirty_background_ratio=5
# sysctl -w vm.dirty_ratio=10
# sysctl -a | grep "dirty"
--啟用應用商店
使用 admin 使用者登入控制檯,點選左上角的平臺管理,選擇叢集管理。
點選定製資源定義,在搜尋欄中輸入 clusterconfiguration,點選結果檢視其詳細頁面。
在該 YAML 檔案中,搜尋 openpitrix,將 enabled 的 false 改為 true。完成後,點選右下角的確定,儲存配置。
在 kubectl 中執行以下命令檢查安裝過程:
kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l 'app in (ks-install, ks-installer)' -o jsonpath='{.items[0].metadata.name}') -f
驗證:
ip address:30880/apps
--
--在 Linux 上以 All-in-One 模式安裝 KubeSphere 3.3.2 kubernetes 1.25.5
-- down kk
curl -sfL | VERSION=v3.0.7 sh -
chmod +x kk
--可以執行 ./kk version --show-supported-k8s,檢視能使用 KubeKey 安裝的所有受支援的 Kubernetes 版本。
--若要同時安裝 Kubernetes 和 KubeSphere,可參考以下示例命令:
# ./kk create cluster --with-kubernetes v1.25.5 --with-kubesphere v3.3.2
# ./kk create cluster --with-kubernetes v1.25.5 --with-kubesphere v3.3.2 --container-manager containerd
[root@master ~]# ./kk create cluster --with-kubernetes v1.25.5 --with-kubesphere v3.3.2 --container-manager containerd
_ __ _ _ __
| | / / | | | | / /
| |/ / _ _| |__ ___| |/ / ___ _ _
| \| | | | '_ \ / _ \ \ / _ \ | | |
| |\ \ |_| | |_) | __/ |\ \ __/ |_| |
\_| \_/\__,_|_.__/ \___\_| \_/\___|\__, |
__/ |
|___/
17:20:25 CST [GreetingsModule] Greetings
17:20:26 CST message: [master]
Greetings, KubeKey!
17:20:26 CST success: [master]
17:20:26 CST [NodePreCheckModule] A pre-check on nodes
17:20:29 CST success: [master]
17:20:29 CST [ConfirmModule] Display confirmation form
+--------+------+------+---------+----------+-------+-------+---------+-----------+--------+--------+------------+------------+-------------+------------------+--------------+
| name | sudo | curl | openssl | ebtables | socat | ipset | ipvsadm | conntrack | chrony | docker | containerd | nfs client | ceph client | glusterfs client | time |
+--------+------+------+---------+----------+-------+-------+---------+-----------+--------+--------+------------+------------+-------------+------------------+--------------+
| master | y | y | y | y | y | y | y | y | y | | 1.6.20 | y | | | CST 17:20:29 |
+--------+------+------+---------+----------+-------+-------+---------+-----------+--------+--------+------------+------------+-------------+------------------+--------------+
This is a simple check of your environment.
Before installation, ensure that your machines meet all requirements specified at
Continue this installation? [yes/no]: yes
17:20:30 CST success: [LocalHost]
17:20:30 CST [NodeBinariesModule] Download installation binaries
17:20:30 CST message: [localhost]
downloading amd64 kubeadm v1.25.5 ...
17:20:31 CST message: [localhost]
kubeadm is existed
17:20:31 CST message: [localhost]
downloading amd64 kubelet v1.25.5 ...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 108M 100 108M 0 0 1020k 0 0:01:49 0:01:49 --:--:-- 1039k
17:22:23 CST message: [localhost]
downloading amd64 kubectl v1.25.5 ...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 42.9M 100 42.9M 0 0 1018k 0 0:00:43 0:00:43 --:--:-- 1052k
17:23:06 CST message: [localhost]
downloading amd64 helm v3.9.0 ...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 44.0M 100 44.0M 0 0 1018k 0 0:00:44 0:00:44 --:--:-- 1055k
17:23:51 CST message: [localhost]
downloading amd64 kubecni v0.9.1 ...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 37.9M 100 37.9M 0 0 1020k 0 0:00:38 0:00:38 --:--:-- 1059k
17:24:30 CST message: [localhost]
downloading amd64 crictl v1.24.0 ...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 13.8M 100 13.8M 0 0 1017k 0 0:00:13 0:00:13 --:--:-- 1041k
17:24:44 CST message: [localhost]
downloading amd64 etcd v3.4.13 ...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 16.5M 100 16.5M 0 0 1025k 0 0:00:16 0:00:16 --:--:-- 1068k
17:25:00 CST message: [localhost]
downloading amd64 containerd 1.6.4 ...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 42.3M 100 42.3M 0 0 1018k 0 0:00:42 0:00:42 --:--:-- 1045k
17:25:43 CST message: [localhost]
downloading amd64 runc v1.1.1 ...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 9194k 100 9194k 0 0 1022k 0 0:00:08 0:00:08 --:--:-- 1055k
17:25:53 CST success: [LocalHost]
17:25:53 CST [ConfigureOSModule] Get OS release
17:25:53 CST success: [master]
17:25:53 CST [ConfigureOSModule] Prepare to init OS
17:25:56 CST success: [master]
17:25:56 CST [ConfigureOSModule] Generate init os script
17:25:57 CST success: [master]
17:25:57 CST [ConfigureOSModule] Exec init os script
17:25:58 CST stdout: [master]
setenforce: SELinux is disabled
Disabled
net.ipv4.ip_forward = 1
net.bridge.bridge-nf-call-arptables = 1
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
net.ipv4.ip_local_reserved_ports = 30000-32767
vm.max_map_count = 262144
vm.swappiness = 1
fs.inotify.max_user_instances = 524288
kernel.pid_max = 65535
17:25:58 CST success: [master]
17:25:58 CST [ConfigureOSModule] configure the ntp server for each node
17:25:58 CST skipped: [master]
17:25:59 CST [KubernetesStatusModule] Get kubernetes cluster status
17:26:00 CST stdout: [master]
v1.25.9
17:26:00 CST stdout: [master]
master v1.25.9 [map[address:192.168.100.121 type:InternalIP] map[address:master type:Hostname]]
node01 v1.25.9 [map[address:192.168.100.122 type:InternalIP] map[address:node01 type:Hostname]]
17:31:23 CST stdout: [master]
I0424 17:31:21.005144 29255 version.go:256] remote version is much newer: v1.27.1; falling back to: stable-1.25
[upload-certs] Storing the certificates in Secret "kubeadm-certs" in the "kube-system" Namespace
[upload-certs] Using certificate key:
165b64d8fac9a69f3db048c96a6ba2b980e3664112fefc6ef2b28c0292d30fce
17:31:23 CST stdout: [master]
secret/kubeadm-certs patched
17:31:24 CST stdout: [master]
secret/kubeadm-certs patched
17:31:24 CST stdout: [master]
secret/kubeadm-certs patched
17:31:24 CST stdout: [master]
yntin0.6x8rcx3oh1ottk45
17:31:24 CST success: [master]
17:31:24 CST [InstallContainerModule] Sync containerd binaries
17:31:24 CST skipped: [master]
17:31:24 CST [InstallContainerModule] Sync crictl binaries
17:31:24 CST skipped: [master]
17:31:24 CST [InstallContainerModule] Generate containerd service
17:31:24 CST skipped: [master]
17:31:24 CST [InstallContainerModule] Generate containerd config
17:31:24 CST skipped: [master]
17:31:24 CST [InstallContainerModule] Generate crictl config
17:31:24 CST skipped: [master]
17:31:24 CST [InstallContainerModule] Enable containerd
17:31:24 CST skipped: [master]
17:31:24 CST [PullModule] Start to pull images on all nodes
17:31:24 CST message: [master]
downloading image: registry.cn-beijing.aliyuncs.com/kubesphereio/pause:3.8
17:31:26 CST message: [master]
downloading image: registry.cn-beijing.aliyuncs.com/kubesphereio/kube-apiserver:v1.25.5
17:31:48 CST message: [master]
downloading image: registry.cn-beijing.aliyuncs.com/kubesphereio/kube-controller-manager:v1.25.5
17:32:08 CST message: [master]
downloading image: registry.cn-beijing.aliyuncs.com/kubesphereio/kube-scheduler:v1.25.5
17:32:18 CST message: [master]
downloading image: registry.cn-beijing.aliyuncs.com/kubesphereio/kube-proxy:v1.25.5
17:32:28 CST message: [master]
downloading image: registry.cn-beijing.aliyuncs.com/kubesphereio/coredns:1.9.3
17:32:29 CST message: [master]
downloading image: registry.cn-beijing.aliyuncs.com/kubesphereio/k8s-dns-node-cache:1.15.12
17:32:57 CST message: [master]
downloading image: registry.cn-beijing.aliyuncs.com/kubesphereio/kube-controllers:v3.23.2
17:33:35 CST message: [master]
downloading image: registry.cn-beijing.aliyuncs.com/kubesphereio/cni:v3.23.2
17:34:38 CST message: [master]
downloading image: registry.cn-beijing.aliyuncs.com/kubesphereio/node:v3.23.2
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/678020/viewspace-2948509/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 3.3.2 正常模式關閉模式
- 3.3.2 多租戶環境的工具
- KubeSphere 新增節點
- semantic-ui@2.4.2 install: `gulp install`UI
- go install: no install location for directory outside GOPATHGoIDE
- pip install 提示:Could not install packages due to an EnvironmentErrorPackageError
- Install clickhouse
- habitat install
- install qdrant
- Python:conda install 和pip install的區別Python
- 03-kubesphere流水線搭建
- Kubuesphere部署Ruoyi(二):部署kubesphere
- KubeSphere 與 Jenkins 的整合解析Jenkins
- 使用 KubeSphere 快速部署 Chaos Mesh
- SyncTime for Mac(檔案同步工具) v3.3.2啟用版Mac
- before install octave package you must be install gcc-fortranPackageGC
- openwrt install lsblk
- postgreSQL install pgvectorSQL
- pip install METIS
- kubernetes 1.25.9 install
- etcd install & configuration
- Deepin Qt InstallQT
- mvn install 命令
- KubeSphere v4 安裝指南
- KubeSphere 接入外部 Elasticsearch 最佳實踐Elasticsearch
- KubeSphere 3.3.0 離線安裝教程
- 使用 GitLab 賬號登陸 KubeSphereGitlab
- KubeSphere 後端原始碼深度解析後端原始碼
- KubeSphere DevOps 系統功能實戰dev
- 《CMake實踐》筆記二:INSTALL/CMAKE_INSTALL_PREFIX筆記
- npm install -g 和npm install --save-dev的關係NPMdev
- flutter install安裝app時,出現INSTALL_FAILED_NO_MATCHING_ABIS: INSTALL_FAILED_NO_MATCH錯誤的原因FlutterAPPAI
- KubeSphere 社群雙週報| 2024.10.25-11.07
- KubeSphere 社群雙週報|2024.09.27-10.10
- KubeSphere 部署 Kafka 叢集實戰指南Kafka
- KubeSphere 社群雙週報| 2024.07.19-08.01
- KubeSphere 社群雙週報|07.05-07.18
- KubeSphere 社群雙週報|2024.06.21-07.04