一、基本架构图

环境:CentOS 7.9

二、安装helm

  • 下载helm
https://github.com/helm/helm/releases
centos7 环境选择Linux amd64版本
 解压:
tar-xzvfhelm-v3.14.4-linux-amd64.tar.gz
将helm移动至/bin目录
mv linux-amd64/helm /usr/local/bin/helm
查看版本号:
helm version

 三、部署OpenEBS控制平面

  • 更新
helm repo add openebs https://openebs.github.io/chartshelm repo update
  • 安装
helm install--namespace openebs openebs openebs/openebs

 三、部署

  • 给PostgreSQL数据库创建独立的命名空间。
kubectl create namespace database
  • 查看命名空间
kubectl get namespaces
  • 创建存储池和存储类:创建一个名为disk-pool的存储池,并定义一个OpenEBS存储类openebs-standard。 
cat> postgres-configmap.yaml << EOFapiVersion: v1kind: ConfigMapmetadata:name: postgres-configlabels:app: postgresnamespace: databasedata:POSTGRES_DB: postgresdbPOSTGRES_USER: postgresadminPOSTGRES_PASSWORD: admin12345EOFkubectlcreate -f postgres-configmap.yaml
  • 查看configMap
kubectl get configmaps -n database
  •  持久化卷 Persistent Storage Volume
链接:https://www.cnblogs.com/zhongqifeng/p/18131443
(版权归原作者所有,侵删)
继续阅读
阅读原文