Add PV provisioner
This adds a new PV provisioner which works together with the
CSI Node driver to provide storage to workloads on Smalltown.
It talks to Kubernetes and listens for PVCs which need to be provisioned
and PVs which have been released and need to be deleted.
Is is implemented as a per-node agent where every node provisions the
volumes scheduled onto it by kube-scheduler.
Test Plan: Manually tested by running `bazel run //core/cmd/dbg -- kubectl create -f $PWD/pv-test.yml` and observing a provisioned PV that's attached to the pod. An example `test-pv.yml` is in P137.
X-Origin-Diff: phab/D482
GitOrigin-RevId: 75a871b039e71dd248f937719c471e0277887964
diff --git a/core/internal/storage/data.go b/core/internal/storage/data.go
index 99a49eb..337aae0 100644
--- a/core/internal/storage/data.go
+++ b/core/internal/storage/data.go
@@ -166,7 +166,7 @@
return err
}
- if err := unix.Mount("/dev/data", "/data", "xfs", unix.MS_NOEXEC|unix.MS_NODEV, ""); err != nil {
+ if err := unix.Mount("/dev/data", "/data", "xfs", unix.MS_NOEXEC|unix.MS_NODEV, "pquota"); err != nil {
return err
}
return nil