【容器化】Kubesphere部署

官网

github:https://github.com/kubesphere/kubesphere

official-website:https://kubesphere.io/

简介

官方说明:KubeSphere is a distributed operating system for cloud-native application management, using Kubernetes as its kernel. It provides a plug-and-play architecture, allowing third-party applications to be seamlessly integrated into its ecosystem.

官方说明:KubeSphere 愿景是打造一个以 Kubernetes 为内核的云原生分布式操作系统,它的架构可以非常方便地使第三方应用与云原生生态组件进行即插即用(plug-and-play)的集成,支持云原生应用在多云与多集群的统一分发和运维管理。

准备

  • 如需在 Kubernetes 上安装 KubeSphere v3.1.1,您的 Kubernetes 版本必须为:1.17.x、1.18.x、1.19.x 或 1.20.x。
  • 确保您的机器满足最低硬件要求:CPU > 1 核,内存 > 2 GB。
  • 在安装之前,需要配置 Kubernetes 集群中的默认存储类型。
    1
    kubectl patch storageclass <storageclass-name> -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'

部署

1
2
3
4
5
6
# 下载部署YAML文件
curl -o /usr/local/src/kubesphere-installer.yaml https://github.com/kubesphere/ks-installer/releases/download/v3.1.1/kubesphere-installer.yaml
curl -o /usr/local/src/cluster-configuration.yaml https://github.com/kubesphere/ks-installer/releases/download/v3.1.1/cluster-configuration.yaml
# 执行YAML文件
kubectl -f /usr/local/src/kubesphere-installer.yaml
kubectl -f /usr/local/src/cluster-configuration.yaml

结果截图:

卸载

1
2
3
4
# 下载卸载脚本
curl -o /usr/local/src/kubesphere-delete.sh https://raw.githubusercontent.com/kubesphere/ks-installer/release-3.1/scripts/kubesphere-delete.sh
# Master节点执行脚本
sh /usr/local/src/kubesphere-delete.sh

(•̀ᴗ•́)و ̑̑

Share