Linux单机安装kubesphere笔记
# 设置环境变量export KKZONE=cn# 下载命令行工具 kk 以及安装包# 下载后的 kk 如果无法执行的话,需要添加可执行权限 chmod +x kkcurl -sfL https://get-kk.kubesphere.io | VERSION=v1.1.1 sh -# 安装集群# 集群安装时间有一点点长,耐心等待。此次安装会将docker、k8s一并安装./kk create c
·
# 设置环境变量
export KKZONE=cn
# 下载命令行工具 kk 以及安装包
# 下载后的 kk 如果无法执行的话,需要添加可执行权限 chmod +x kk
curl -sfL https://get-kk.kubesphere.io | VERSION=v1.1.1 sh -
# 安装集群
# 集群安装时间有一点点长,耐心等待。此次安装会将docker、k8s一并安装
./kk create cluster --with-kubernetes v1.20.4 --with-kubesphere v3.1.1
# 如果提示缺少conntrack,安装conntrack后在重新安装kubesphere
[root@kubesphere ~]# ./kk create cluster --with-kubernetes v1.20.4 --with-kubesphere v3.1.1
+------------+------+------+---------+----------+-------+-------+-----------+--------+------------+-------------+------------------+--------------+
| name | sudo | curl | openssl | ebtables | socat | ipset | conntrack | docker | nfs client | ceph client | glusterfs client | time |
+------------+------+------+---------+----------+-------+-------+-----------+--------+------------+-------------+------------------+--------------+
| kubesphere | y | y | y | y | | y | | | | | | CST 14:24:47 |
+------------+------+------+---------+----------+-------+-------+-----------+--------+------------+-------------+------------------+--------------+
kubesphere: conntrack is required.
yum install -y conntrack
安装完成
#####################################################
### Welcome to KubeSphere! ###
#####################################################
Console: http://192.168.8.150:30880
Account: admin
Password: P@88w0rd
NOTES:
1. After you log into the console, please check the
monitoring status of service components in
"Cluster Management". If any service is not
ready, please wait patiently until all components
are up and running.
2. Please change the default password after login.
#####################################################
https://kubesphere.io 2022-02-06 14:40:48
#####################################################
INFO[14:41:01 CST] Installation is complete.
Please check the result using the command:
kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l app=ks-install -o jsonpath='{.items[0].metadata.name}') -f
更多推荐
已为社区贡献2条内容
所有评论(0)