You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DirectPV is a CSI driver for [Direct Attached Storage](https://en.wikipedia.org/wiki/Direct-attached_storage). In a simpler sense, it is a distributed persistent volume manager, and not a storage system like SAN or NAS. It is useful to *discover, format, mount, schedule and monitor* drives across servers. Since Kubernetes `hostPath` and `local` PVs are statically provisioned and limited in functionality, DirectPV was created to address this limitation.
3
+
[DirectPV](https://github.com/minio/directpv) is a [CSI](https://kubernetes.io/blog/2019/01/15/container-storage-interface-ga/) driver for [Direct Attached Storage](https://en.wikipedia.org/wiki/Direct-attached_storage). In a simpler sense, it is a distributed persistent volume manager, and not a storage system like SAN or NAS. It is useful to *discover, format, mount, schedule and monitor* drives across servers.
5
4
6
5
Distributed data stores such as object storage, databases and message queues are designed for direct attached storage, and they handle high availability and data durability by themselves. Running them on traditional SAN or NAS based CSI drivers (Network PV) adds yet another layer of replication/erasure coding and extra network hops in the data path. This additional layer of disaggregation results in increased-complexity and poor performance.
# Discover drives to check the available devices in the cluster to initialize
30
-
# The following command will create an init config file (default: drives.yaml) which will be used for initialization
28
+
# Probe and save drive information to drives.yaml file.
31
29
$ kubectl directpv discover
32
30
33
-
#Review the drives.yaml for drive selections and initialize those drives
31
+
#Initialize selected drives.
34
32
$ kubectl directpv init drives.yaml
35
33
```
36
34
37
-
(NOTE: XFS is the filesystem used for formatting the drives here)
38
-
39
-
5. Get list of added drives
40
-
```sh
41
-
$ kubectl directpv list drives
42
-
```
43
-
44
-
6. Deploy a demo MinIO server
45
-
46
-
DirectPV enforces node constraints where it allocates storage based on the worker node where a pod deploys. If the pod deploys to a worker node with no or insufficient DirectPV-managed drives, DirectPV cannot allocate storage to that pod. DirectPV does not allocate storage from one node to a pod on another node.
47
-
48
-
Modify the YAML to reflect the node and storage distribution of your Kubernetes cluster.
49
-
35
+
5. Deploy a demo MinIO server
50
36
```sh
51
-
# This should create MinIO pods and PVCs using the `directpv-min-io` storage class
For air-gapped setups and advanced installations, please refer to the [Installation Guide](./docs/installation.md).
56
-
57
-
### Upgrade
58
-
59
-
Firstly, it is required to uninstall older version of DirectPV. Once it is uninstalled, follow [Installation instructions](#Installation) to install the latest DirectPV. In this process, all existing drives and volumes will be migrated automatically.
60
-
61
-
#### Upgrade using krew
62
-
63
-
Refer the following steps for upgrading DirectPV using krew
64
-
65
-
```sh
66
-
# Uninstall existing DirectPV installation
67
-
$ kubectl directpv uninstall
68
-
69
-
# Upgrade directpv plugin via krew
70
-
$ kubectl krew upgrade directpv
71
-
72
-
# Install latest DirectPV
73
-
$ kubectl directpv install
74
-
```
75
-
76
-
#### Upgrade from DirectPV v3.2.x
77
-
78
-
For migrating from older versions < v3.2.0, Please refer the [Upgrade Guide](./docs/upgrade.md)
79
-
80
-
### Security
81
-
82
-
Please review the [security checklist](./security-checklist.md) before deploying to production.
83
-
84
-
**Important**: Report security issues to security@min.io. Please do not report security issues here.
DirectPV is a MinIO project. You can contact the authors over the slack channel:
104
-
105
-
-[MinIO Slack](https://slack.min.io/)
40
+
## Further information
41
+
Refer [detailed documentation](./docs/README.md)
106
42
107
-
### License
43
+
## Join Community
44
+
DirectPV is a MinIO project. You can contact the authors over the [slack channel](https://slack.min.io/)
108
45
109
-
DirectPV is released under GNU AGPLv3 license. Please refer to the LICENSE document for a complete copy of the license.
46
+
## License
47
+
DirectPV is released under GNU AGPLv3 license. Refer the [LICENSE document](https://github.com/minio/directpv/blob/master/LICENSE) for a complete copy of the license.
DirectPV is a CSI driver to provision local volumes to Pods using [Direct Attached Storage](https://en.wikipedia.org/wiki/Direct-attached_storage). It comes with two components.
3
+
1.`DirectPV plugin` - To be installed on local machine, to manage DirectPV CSI driver.
4
+
2.`DirectPV CSI driver` - To be installed on kubernetes cluster, to provision local volumes.
0 commit comments