Commit graph

15 commits

Author SHA1 Message Date
Pawan
25d1f1a413 feat(zfspv): pvc should be bound only if volume has been created.
The controller does not check whether the volume has been created or not
and return successful. Which in turn binds the pvc to the pv.

The PVC should not bound until corresponding zfs volume has been created.
Now controller will check the ZFSVolume CR state to be "Ready" before returning
successful. The CSI will retry the CreateVolume request when it will get
a error reply and when the ZFS node agent creates the ZFS volume and sets the
ZFSVolume CR state to be "Ready", the controller will return success for the
CreateVolume Request and then PVC will be bound.

Signed-off-by: Pawan <pawan@mayadata.io>
2020-05-21 08:49:57 +05:30
Aman Gupta
9118f56600
chore(doc): Enhanced the doc for custom-topology support (#122)
Signed-off-by: Aman Gupta <aman.gupta@mayadata.io>
2020-05-20 14:07:44 +05:30
Pawan
2f19a6674b fix(image): updating the screneshot with new dashboard
Signed-off-by: Pawan <pawan@mayadata.io>
2020-05-15 21:42:27 +05:30
Pawan Prakash Sharma
1045f1daa1
feat(grafana): adding basic grafana dashboard (#110)
adding grafana dashboard for ZFS Local PV that shows the following metrics:

- Volume Capacity (used space percentage)
- ARC Size, Hits, Misses
- L2ARC Size, Hits, Misses
- ZPOOL Read/Write IOs
- ZPOOL Read/Write time

This dashboard was inspired by https://grafana.com/grafana/dashboards/7845

Signed-off-by: Pawan <pawan@mayadata.io>
2020-05-15 14:39:16 +05:30
Pawan
2131153751 chore(import-vol): adding steps to import existing volumes to ZFS-LocalPV
Signed-off-by: Pawan <pawan@mayadata.io>
2020-05-08 21:37:04 +05:30
Pawan
34cc65df00 chore(doc): adding raw block volume details in README
also added detailed upgrade steps.

Signed-off-by: Pawan <pawan@mayadata.io>
2020-05-07 22:25:10 +05:30
Pawan Prakash Sharma
de9b302083
feat(topology): adding support for custom topology keys (#94)
This commit adds the support for use to specify custom labels to the kubernetes nodes and use them in the allowedToplogoies section of the StorageClass. 

Few notes:
- This PR depends on the CSI driver's capability to support custom topology keys. 
- label on the nodes should be added first and then deploy the driver to make it aware of
all the labels that node has. If labels are added after ZFS-LocalPV driver
has been deployed, a restart all the node csi driver agents is required so that the driver
can pick the labels and add them as supported topology keys.
- if storageclass is using Immediate binding mode and topology key is not mentioned
then all the nodes should be labeled using same key, that means:
  - same key should be present on all nodes, nodes can have different values for those keys. 
  - If nodes are labeled with different keys i.e. some nodes are having different keys, then ZFSPV's default scheduler can not effictively do the volume count based scheduling. In this case the CSI provisioner will pick keys from any random node and then prepare the preferred topology list using the nodes which has those keys defined. And ZFSPV scheduler will schedule the PV among those nodes only.

Signed-off-by: Pawan <pawan@mayadata.io>
2020-04-30 14:13:29 +05:30
Filippo Bosi
95230b5434
added developer environment examples (#92)
Signed-off-by: Filippo Bosi <filippo.bosi@gmail.com>
2020-04-27 20:12:09 +05:30
Pawan
fd2ec40fb5 chore(doc): adding resize details in README
Signed-off-by: Pawan <pawan@mayadata.io>
2020-03-06 14:02:23 +05:30
Aman Gupta
5922ebe038
add(doc): Adding the list of e2e test cases (#50)
Added the list of automated and manual e2e test cases specific to zfs-localpv 

Signed-off-by: Aman Gupta <aman.gupta@mayadata.io>
2020-02-28 22:33:22 +05:30
Pawan
896a6032ca chore(metrics): adding list of zfs metrics exposed by prometheus
Signed-off-by: Pawan <pawan@mayadata.io>
2020-01-17 14:40:42 +05:30
Pawan Prakash Sharma
0b56f0ae53 feat(alert): adding sample prometheus rules for ZFSPV (#32)
Provide sample instructions on setting up prometheus via prometheus-operator and then configuring a sample rule to monitor the volume space utilization, and once available space is less than 10%, it will start firing the alert.

```
 100 * kubelet_volume_stats_available_bytes{job="kubelet"}
          /
        kubelet_volume_stats_capacity_bytes{job="kubelet"}
          < 10
```

Signed-off-by: Pawan <pawan@mayadata.io>
2020-01-09 23:10:13 +05:30
Pawan
7094c48a8f feat(HA): adding antiaffinity in the controller deployment
so that no two pods get scheduled on the same node. Also keeping
the default replica to 1, if HA feature is required, we can change
replica count to 2(or more).

Signed-off-by: Pawan <pawan@mayadata.io>
2020-01-06 19:13:53 +05:30
Pawan
dfe4631835 chore(doc): adding faq.md for ZFSPV
Signed-off-by: Pawan <pawan@mayadata.io>
2019-12-30 18:43:04 +05:30
Pawan
5c992a5ba4 chore(doc): adding contributing doc
Signed-off-by: Pawan <pawan@mayadata.io>
2019-12-30 18:43:04 +05:30