This commit is contained in:
parent
81c39ad816
commit
cdf105ee39
35
README.md
35
README.md
|
|
@ -42,7 +42,7 @@ relatively easy to implement new drivers.
|
||||||
## Community Guides
|
## Community Guides
|
||||||
|
|
||||||
[Using TrueNAS to provide persistent storage for Kubernetes](https://jonathangazeley.com/2021/01/05/using-truenas-to-provide-persistent-storage-for-kubernetes/)
|
[Using TrueNAS to provide persistent storage for Kubernetes](https://jonathangazeley.com/2021/01/05/using-truenas-to-provide-persistent-storage-for-kubernetes/)
|
||||||
[Migrating from `nfs-client-provisioner` to `democratic-CSI`](https://gist.github.com/admun/4372899f20421a947b7544e5fc9f9117)
|
[Migrating from `NFS-client-provisioner` to `democratic-CSI`](https://gist.github.com/admun/4372899f20421a947b7544e5fc9f9117)
|
||||||
[Migrating between storage classes using `Velero`](https://gist.github.com/deefdragon/d58a4210622ff64088bd62a5d8a4e8cc)
|
[Migrating between storage classes using `Velero`](https://gist.github.com/deefdragon/d58a4210622ff64088bd62a5d8a4e8cc)
|
||||||
|
|
||||||
# Installation
|
# Installation
|
||||||
|
|
@ -71,41 +71,42 @@ sudo apt-get install -y nfs-common
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
### **iSCSI configuration**
|
### **iSCSI configuration**
|
||||||
**RHEL / CentOS**
|
 **RHEL / CentOS**
|
||||||
Install the following system packages
|
 Install the following system packages:
|
||||||
```
|
```
|
||||||
sudo yum install -y lsscsi iscsi-initiator-utils sg3_utils device-mapper-multipath
|
sudo yum install -y lsscsi iscsi-initiator-utils sg3_utils device-mapper-multipath
|
||||||
```
|
```
|
||||||
Enable multipathing
|
 Enable multipathing:
|
||||||
```
|
```
|
||||||
sudo mpathconf --enable --with_multipathd y
|
sudo mpathconf --enable --with_multipathd y
|
||||||
```
|
```
|
||||||
Ensure that iscsid and multipathd are running
|
 Ensure that `iscsid` and `multipathd` are running:
|
||||||
```
|
```
|
||||||
sudo systemctl enable iscsid multipathd && sudo systemctl start iscsid multipathd
|
sudo systemctl enable iscsid multipathd && sudo systemctl start iscsid multipathd
|
||||||
```
|
```
|
||||||
Start and enable iscsi
|
 Start and enable iSCSI:
|
||||||
```
|
```
|
||||||
sudo systemctl enable iscsi && sudo systemctl start iscsi
|
sudo systemctl enable iscsi && sudo systemctl start iscsi
|
||||||
```
|
```
|
||||||
|
___
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
**Ubuntu / Debian**
|
 **Ubuntu / Debian**
|
||||||
Install the following system packages
|
 Install the following system packages:
|
||||||
```
|
```
|
||||||
sudo apt-get install -y open-iscsi lsscsi sg3-utils multipath-tools scsitools
|
sudo apt-get install -y open-iscsi lsscsi sg3-utils multipath-tools scsitools
|
||||||
```
|
```
|
||||||
**Multipathing**
|
  **Multipathing**
|
||||||
`Multipath` is supported for the `iSCSI`-based drivers. Simply setup
|
  `Multipath` is supported for the `iSCSI`-based drivers. Simply setup
|
||||||
multipath to your liking and set multiple
|
  multipath to your liking and set multiple
|
||||||
portals in the config as appropriate.
|
  portals in the config as appropriate.
|
||||||
|
|
||||||
*NOTE:* If you are running Kubernetes with Rancher/RKE please see the following:
|
  *NOTE:* If you are running Kubernetes with Rancher/RKE please see the following:
|
||||||
[Support host iscsi simultaneously with kubelet iscsi (pvc)](https://github.com/rancher/rke/issues/1846>)
|
  [Support host iscsi simultaneously with kubelet iscsi (pvc)](https://github.com/rancher/rke/issues/1846>)
|
||||||
|
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
Add the mutlipath configuration
|
  Add the mutlipath configuration:
|
||||||
```
|
```
|
||||||
sudo tee /etc/multipath.conf <<-'EOF'
|
sudo tee /etc/multipath.conf <<-'EOF'
|
||||||
defaults {
|
defaults {
|
||||||
|
|
@ -114,11 +115,11 @@ defaults {
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
```
|
```
|
||||||
Enable the `multipath-tools` service and restart to load the configuration
|
  Enable the `multipath-tools` service and restart to load the configuration:
|
||||||
```
|
```
|
||||||
sudo systemctl enable multipath-tools && sudo service multipath-tools restart
|
sudo systemctl enable multipath-tools && sudo service multipath-tools restart
|
||||||
```
|
```
|
||||||
Ensure that `open-iscsi` and `multipath-tools` are enabled and running
|
  Ensure that `open-iscsi` and `multipath-tools` are enabled and running:
|
||||||
```
|
```
|
||||||
sudo systemctl status multipath-tools
|
sudo systemctl status multipath-tools
|
||||||
sudo systemctl enable open-iscsi.service
|
sudo systemctl enable open-iscsi.service
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue