
k8s之ceph分布式存储
(ceph集群安装请看上篇文章)CEPH篇 块存储、文件存储和对象存储意义和差异及ubuntu20.4下 ceph安装_yaodunlin的博客-CSDN博客各个work节点安装客户端apt updateapt install ceph-commonK8S 客户端版本必须大于服务器版本 必须拷贝 这两个文件 ceph.client.admin.keyring ceph.conf 到所有的K8S w
(ceph集群安装请看上篇文章)
CEPH篇 块存储、文件存储和对象存储意义和差异及ubuntu20.4下 ceph安装_yaodunlin的博客-CSDN博客
各个work节点安装客户端
apt update
apt install ceph-common
K8S 客户端版本必须大于服务器版本 必须拷贝 这两个文件 ceph.client.admin.keyring ceph.conf 到所有的K8S work节点
服务端拷贝配置文件过去
scp ceph.client.admin.keyring ceph.conf 这两个文件过去
chmod 644 /etc/ceph/ceph.c*
monitors: 192.168.1.10:6789,192.168.1.11:6789,192.168.1.12:6789
adminSecretName: ceph-secret-admin
# ceph auth get-key client.admin | base64
key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx==
# ceph auth add client.kube mon 'allow r' osd 'allow rwx pool=kube'
# ceph auth get-key client.kube | base64
key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx==
apiVersion: rbac.authorization.k8s.io/v1
apiGroup: rbac.authorization.k8s.io
apiVersion: rbac.authorization.k8s.io/v1
resources: ["persistentvolumes"]
verbs: ["get", "list", "watch", "create", "delete"]
resources: ["persistentvolumeclaims"]
verbs: ["get", "list", "watch", "update"]
- apiGroups: ["storage.k8s.io"]
verbs: ["get", "list", "watch"]
verbs: ["create", "update", "patch"]
resourceNames: ["kube-dns","coredns"]
verbs: ["get", "list", "watch", "create", "update", "patch"]
image: "quay.io/external_storage/rbd-provisioner:latest"
serviceAccount: rbd-provisioner
apiVersion: rbac.authorization.k8s.io/v1
apiGroup: rbac.authorization.k8s.io
apiVersion: rbac.authorization.k8s.io/v1
verbs: ["get", "list", "watch", "create", "update", "patch"]
rbd-provisioner
存储类
PVC
14、遇到的问题
1、
解决:ceph-common 客户端版问题
2、
更多推荐
所有评论(0)