Blame docs/operations/ci/localstorage/binding_pvc.md

47c289
# Binding a PVC to a local storage PV
47c289
47c289
In order to bind a PVC to a local storage PV you can do so using the following:
47c289
47c289
Steps:
47c289
47c289
*   Create a PersistantVolumeClaim object like the following, simply update the `NAMESPACE` to match the namespace this PVC will be created in, the `NAME` the name of the PVC, the `SIZE` the size which matches the local storage PV and finally the `LOCAL_STORAGE_PV_NAME` to match the local storage PV's name which you wish to bind it to.
47c289
*   Important, don't chose a local storage PV name which exists on a master node, as they are marked as unschedulable for user workloads.
47c289
47c289
47c289
```
47c289
kind: PersistentVolumeClaim
47c289
apiVersion: v1
47c289
metadata:
47c289
  name: NAME
47c289
  namespace: NAMESPACE
47c289
  finalizers:
47c289
    - kubernetes.io/pvc-protection
47c289
spec:
47c289
  accessModes:
47c289
    - ReadWriteMany
47c289
  resources:
47c289
    requests:
47c289
      storage: SIZE
47c289
  volumeName: LOCAL_STORAGE_PV_NAME
47c289
  storageClassName: local-sc
47c289
  volumeMode: Filesystem
47c289
```