# Test the local-path-provisioner on a k8s cluster

XMLWordPrintable

## Details

• Type: Story
• Status: Done
• Resolution: Done
• Fix Version/s: None
• Component/s: None
• Labels:
None
• Story Points:
1.4
• Team:
SQuaRE

## Description

The local-path-provisioner implements a local-path storage class for provisioning persistent volumes of hostPath type in Kubernetes. That worked fine on a single node running k3s.

In this ticket, we'll run tests to make sure it works as expected in a (multi-node) k8s cluster.

## Activity

Angelo Fausti created issue -
Field Original Value New Value
Epic Link DM-22721 [ 427980 ]
 Link This issue relates to DM-23064 [ DM-23064 ]
Hide
Angelo Fausti added a comment -

The local-path-provisioner controller correctly creates the pv's on multiple nodes in the cluster, which is great. However, we had to export the nfs with no_root_squash for that to work.

It seems we can avoid that using the securityContext spec in the pod, see for example:

https://github.com/rancher/local-path-provisioner/blob/master/examples/pod-with-security-context.yaml

Show
Angelo Fausti added a comment - The local-path-provisioner controller correctly creates the pv's on multiple nodes in the cluster, which is great. However, we had to export the nfs with no_root_squash for that to work. It seems we can avoid that using the securityContext spec in the pod, see for example: https://github.com/rancher/local-path-provisioner/blob/master/examples/pod-with-security-context.yaml
 Description The local-path-provisioner provides a local-path storage class for provisioning persistent volumes of hostPath type. That worked fine on a single node running k3s. In this ticket, we'll run tests to make sure the local-path-provisioner works as expected in a (multi-node) k8s cluster. The {{local-path-provisioner}} implements a {{local-path}} storage class for provisioning persistent volumes of {{hostPath}} type in Kubernetes. That worked fine on a single node running k3s. In this ticket, we'll run tests to make sure it works as expected in a (multi-node) k8s cluster.
 Status To Do [ 10001 ] In Progress [ 3 ]
Hide
Angelo Fausti added a comment -

I've open another ticket DM-23307 to test the secutiryContext spec in a different environment than the current NCSA test stand EFD.

Show
Angelo Fausti added a comment - I've open another ticket DM-23307 to test the secutiryContext spec in a different environment than the current NCSA test stand EFD.
 Resolution Done [ 10000 ] Status In Progress [ 3 ] Done [ 10002 ]

## People

• Assignee:
Angelo Fausti
Reporter:
Angelo Fausti
Watchers:
Angelo Fausti, Matthew Thomas Long, Michelle Butler