Some checks reported errors
continuous-integration/drone/push Build encountered an error
10 lines
619 B
Markdown
10 lines
619 B
Markdown
[](https://drone.reslinger.net/adrien/ansible-role-k8s-storage)
|
|
|
|
# ansible-role-k8s-storage
|
|
|
|
Deploy storage class to kubernetes cluster
|
|
|
|
|
|
for KUBENODE in node1 node2 node3; do kubectl --context my_context label node ${KUBENODE} node.longhorn.io/create-default-disk=config; kubectl --context my_context annotate node ${KUBENODE} node.longhorn.io/default-disks-config='[{"path":"/var/lib/longhorn","allowScheduling":true}]'; done
|
|
|
|
For some idea, you can open [this page](https://kubernetes-csi.github.io/docs/drivers.html)
|