mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-09 16:00:22 +00:00
update readme and deployment
Signed-off-by: Huamin Chen <hchen@redhat.com>
This commit is contained in:
parent
84adf568a8
commit
562c3dfafa
52
README.md
52
README.md
@ -1,8 +1,60 @@
|
|||||||
# Ceph CSI
|
# Ceph CSI
|
||||||
[Container Storage Interface (CSI)](https://github.com/container-storage-interface/) driver, provisioner, and attacher for Ceph RBD and CephFS
|
[Container Storage Interface (CSI)](https://github.com/container-storage-interface/) driver, provisioner, and attacher for Ceph RBD and CephFS
|
||||||
|
|
||||||
|
# Prerequisite
|
||||||
|
|
||||||
|
## Enable Mount Propagation in Docker
|
||||||
|
|
||||||
|
Comment out `MountFlags=slave` in docker systemd service then restart docker service.
|
||||||
|
```bash
|
||||||
|
# systemctl daemon-reload
|
||||||
|
# systemctl restart docker
|
||||||
|
```
|
||||||
|
|
||||||
|
## Enable Kubernetes Feature Gates
|
||||||
|
|
||||||
|
Enable features `MountPropagation=true,CSIPersistentVolume=true` and runtime config `storage.k8s.io/v1alpha1=true`
|
||||||
|
|
||||||
# Build
|
# Build
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# make container
|
||||||
|
```
|
||||||
|
|
||||||
# Test
|
# Test
|
||||||
|
|
||||||
|
## Start rbdplugin and driver registrar
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# kubectl create -f deploy/kubernetes/rbdplugin.yaml
|
||||||
|
```
|
||||||
|
|
||||||
|
### Start CSI external volume provisioner
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# kubectl create -f deploy/kubernetes/csi-provisioner.yaml
|
||||||
|
```
|
||||||
|
|
||||||
|
### Start CSI external volume attacher
|
||||||
|
|
||||||
|
```
|
||||||
|
# kubectl create -f deploy/kubernetes/csi-attacher.yaml
|
||||||
|
```
|
||||||
|
|
||||||
|
### Verify all componets are ready
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# kubectl get pod
|
||||||
|
NAME READY STATUS RESTARTS AGE
|
||||||
|
csi-attacher-0 1/1 Running 0 6s
|
||||||
|
csi-nodeplugin-rbdplugin-kwhhc 2/2 Running 0 6m
|
||||||
|
csi-provisioner-0 1/1 Running 0 1m
|
||||||
|
```
|
||||||
|
|
||||||
|
### Create a CSI storage class
|
||||||
|
|
||||||
|
|
||||||
|
### Create a PVC
|
||||||
|
|
||||||
|
### Create a Pod
|
||||||
|
|
||||||
|
@ -75,7 +75,7 @@ spec:
|
|||||||
serviceAccount: csi-provisioner
|
serviceAccount: csi-provisioner
|
||||||
containers:
|
containers:
|
||||||
- name: csi-provisioner
|
- name: csi-provisioner
|
||||||
image: docker.io/k8scsi/csi-provisioner:latest
|
image: quay.io/k8scsi/csi-provisioner:latest
|
||||||
args:
|
args:
|
||||||
- "--provisioner=rbdplugin"
|
- "--provisioner=rbdplugin"
|
||||||
- "--csi-address=$(ADDRESS)"
|
- "--csi-address=$(ADDRESS)"
|
||||||
|
@ -11,6 +11,9 @@ apiVersion: rbac.authorization.k8s.io/v1
|
|||||||
metadata:
|
metadata:
|
||||||
name: csi-nodeplugin
|
name: csi-nodeplugin
|
||||||
rules:
|
rules:
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["nodes"]
|
||||||
|
verbs: ["get", "list", "update"]
|
||||||
- apiGroups: [""]
|
- apiGroups: [""]
|
||||||
resources: ["secrets"]
|
resources: ["secrets"]
|
||||||
verbs: ["get", "list"]
|
verbs: ["get", "list"]
|
||||||
@ -58,7 +61,7 @@ spec:
|
|||||||
hostNetwork: true
|
hostNetwork: true
|
||||||
containers:
|
containers:
|
||||||
- name: driver-registrar
|
- name: driver-registrar
|
||||||
image: csi_images/driver-registrar:latest
|
image: docker.io/k8scsi/driver-registrar:latest
|
||||||
args:
|
args:
|
||||||
- "--v=5"
|
- "--v=5"
|
||||||
- "--csi-address=$(ADDRESS)"
|
- "--csi-address=$(ADDRESS)"
|
||||||
|
@ -8,4 +8,4 @@ spec:
|
|||||||
storageClassName: rbd-csi-provisioner
|
storageClassName: rbd-csi-provisioner
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 1Mi
|
storage: 1Gi
|
||||||
|
Loading…
Reference in New Issue
Block a user