OpenEBS k8s PVC 服务安装部署

发布时间: 更新时间: 总字数:208 阅读时间:1m 作者: IP属地: 分享 复制网址

OpenEBS 是一种模拟了AWS的EBS(Elastic Block Store)等块存储实现的,基于容器的存储开源软件,为k8s提供Local PV动态持久化存储。

介绍

OpenEBS 是一种基于 CAS (Container Attached Storage) 理念的容器解决方案,其核心理念是存储和应用一样采用微服务架构,并通过 Kubernetes 来做资源编排。其架构实现上,每个 Volume 的 Controller 都是一个单独的 Pod,且与应用 Pod 在同一个节点,卷的数据使用多个 Pod 进行管理

安装

  • 安装
kubectl apply -f https://openebs.github.io/charts/openebs-operator.yaml
  • 将 StorageClass openebs-hostpath 设置为默认的 StorageClass
kubectl patch storageclass openebs-hostpath -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'
  • 查看服务状态
kubectl -n openebs get pod
Home Archives Categories Tags Statistics
本文总阅读量 次 本站总访问量 次 本站总访客数