Kubernetes 最小化安装 KubeSphere v3.3.2
[TOC]
一、前言
- 我只是做了一个笔记,官方其实写的很清楚了
- 官方地址: https://kubesphere.io/install
1.2、版本说明
服务 | 版本 |
---|---|
Kubernetes | v3.3.2 |
二、安装 KubeSphere
最小化安装 KubeSphere
2.1、创建 Storage
cat > storageclass.yaml << EOF
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: local-storage
provisioner: kubernetes.io/no-provisioner
volumeBindingMode: WaitForFirstConsumer
EOF
2.2、创建 PersistentVolumeClaim
cat > persistentVolumeClaim.yaml << EOF
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: local-pve
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 20Gi
storageClassName: local-storage
EOF
2.3、下载安装文件
wget https://github.com/kubesphere/ks-installer/releases/download/v3.3.2/kubesphere-installer.yaml
wget https://github.com/kubesphere/ks-installer/releases/download/v3.3.2/cluster-configuration.yaml
2.4、编辑配置文件
vim cluster-configuration.yaml
# 找到 spec.persistence.storageClass 默认是空的填写刚刚创建的,保存即可
spec:
persistence:
storageClass: "local-storage"
2.5、执行以下命令开始安装
kubectl apply -f storageclass.yaml
kubectl apply -f persistentVolumeClaim.yaml
kubectl apply -f kubesphere-installer.yaml
kubectl apply -f cluster-configuration.yaml
2.5、检查安装日志
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
Console: http://192.168.50.220: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.
版权声明:
作者:Akiraka
链接:https://www.akiraka.net/kubernetes/1519.html
来源:Akiraka
文章版权归作者所有,未经允许请勿转载。
THE END
0
二维码
海报
Kubernetes 最小化安装 KubeSphere v3.3.2
[TOC]
一、前言
我只是做了一个笔记,官方其实写的很清楚了
官方地址: https://kubesphere.io/install
1.2、版本说明
服务
版本
Kubernetes
v3.3.2
……

文章目录
关闭
共有 0 条评论