FInal Changes and fixes

This commit is contained in:
D1StrX 2022-01-12 21:30:36 +01:00
parent 844e7ed9b5
commit 87cbf0ee5e
1 changed files with 26 additions and 20 deletions

View File

@ -184,7 +184,7 @@ Configuration templates can be found [HERE](https://github.com/D1StrX/democratic
[Continue configuration](#Service-configuration) [Continue configuration](#Service-configuration)
### **Service configuration** ### Service configuration
Ensure the following services are *configured*, *running* and starting automatically: Ensure the following services are *configured*, *running* and starting automatically:
@ -282,7 +282,7 @@ ___
___ ___
Instruct `Democratic-CSI` to use `sudo` by uncommenting the following in your configuration template: Instruct `Democratic-CSI` to use `sudo` by uncommenting the following in your configuration template:
```bash ```yaml
zfs: zfs:
cli: cli:
sudoEnabled: true sudoEnabled: true
@ -413,39 +413,45 @@ You may install multiple deployments of each/any driver. It requires the followi
## **Snapshot Support** ## **Snapshot Support**
[**External-snapshotter CRD**](https://github.com/kubernetes-csi/external-snapshotter/tree/master/client/config/crd)
Install beta (v1.17+) CRDs (one per cluster): Install beta (v1.17+) CRDs (one per cluster):
- <https://github.com/kubernetes-csi/external-snapshotter/tree/master/client/config/crd>
```bash ```bash
kubectl apply -f snapshot.storage.k8s.io_volumesnapshotclasses.yaml kubectl apply -f snapshot.storage.k8s.io_volumesnapshotclasses.yaml
```
```bash
kubectl apply -f snapshot.storage.k8s.io_volumesnapshotcontents.yaml kubectl apply -f snapshot.storage.k8s.io_volumesnapshotcontents.yaml
```
```bash
kubectl apply -f snapshot.storage.k8s.io_volumesnapshots.yaml kubectl apply -f snapshot.storage.k8s.io_volumesnapshots.yaml
``` ```
Install snapshot controller (once per cluster): [**External-snapshotter Controller**](https://github.com/kubernetes-csi/external-snapshotter/tree/master/deploy/kubernetes/snapshot-controller)
Install snapshot controller (once per cluster):
- <https://github.com/kubernetes-csi/external-snapshotter/tree/master/deploy/kubernetes/snapshot-controller> Add `--namespace` references to your need.
```bash ```bash
# replace namespace references to your liking
kubectl apply -f rbac-snapshot-controller.yaml kubectl apply -f rbac-snapshot-controller.yaml
```
```bash
kubectl apply -f setup-snapshot-controller.yaml kubectl apply -f setup-snapshot-controller.yaml
``` ```
Install `Democratic-CSI` as usual with `volumeSnapshotClasses` defined as appropriate. Install `Democratic-CSI` with `volumeSnapshotClasses` appropriatly defined.
- <https://kubernetes.io/docs/concepts/storage/volume-snapshots/> [Volume-snapshots](https://kubernetes.io/docs/concepts/storage/volume-snapshots/)
- <https://github.com/kubernetes-csi/external-snapshotter#usage> [External-snapshotter Usage](https://github.com/kubernetes-csi/external-snapshotter#usage)
- <https://github.com/democratic-csi/democratic-csi/issues/129#issuecomment-961489810> [Democratic-CSI Issue](https://github.com/democratic-csi/democratic-csi/issues/129#issuecomment-961489810)
## **Migrating from freenas-provisioner and freenas-iscsi-provisioner** ## Migrating from freenas-provisioner and freenas-iscsi-provisioner
It is possible to migrate all volumes from the non-csi freenas provisioners It is possible to migrate all volumes from the non-csi freenas provisioners
to `Democratic-CSI`. to `Democratic-CSI`.
Copy the `contrib/freenas-provisioner-to-democratic-csi.sh` script from the Copy the `contrib/freenas-provisioner-to-democratic-csi.sh` script from the project to your workstation. Read the script in detail, and edit the variables
project to your workstation, read the script in detail, and edit the variables
to your needs to start migrating! to your needs to start migrating!
# **Sponsors** # **Sponsors**
@ -456,8 +462,8 @@ A special shout out to the wonderful sponsors of this project!
## **Related** ## **Related**
- <https://github.com/nmaupu/freenas-provisioner> [Freenas provisioner](https://github.com/nmaupu/freenas-provisioner)
- <https://github.com/travisghansen/freenas-iscsi-provisioner> [Freenas iSCSI provisioner](https://github.com/travisghansen/freenas-iscsi-provisioner)
- <https://datamattsson.tumblr.com/post/624751011659202560/welcome-truenas-core-container-storage-provider> [Welcome TrueNAS Core container storageprovider](https://datamattsson.tumblr.com/post/624751011659202560/welcome-truenas-core-container-storage-provider)
- <https://github.com/dravanet/truenas-csi> [Truenas CSI](https://github.com/dravanet/truenas-csi)
- <https://github.com/SynologyOpenSource/synology-csi> [Synology CSI](https://github.com/SynologyOpenSource/synology-csi)