======= storage ======= I'm sure there are better ways to do storage, but this my lab is pretty limited. storageClass ^^^^^^^^^^^^ First a storageClass is created. `persistentVolumes` will use this storageClass. The following configuration can be saves as `local-data.yml` and applied with `kubectl apply -f local-data.yml`. .. literalinclude:: src/0-storageClass.yml :language: yaml persistentVolumes ^^^^^^^^^^^^^^^^^ Create a persistentVolume on each of the worker nodes. I guess I need 1 pv per persistentVolumeClaim? This config creates 3 PVs, one for each node I plan on creating. .. literalinclude:: src/1.2-pv.yml :language: yaml retain ^^^^^^ Because of `persistentVolumeReclaimPolicy: Retain` the data won't be deleted even when the `pv` is deleted. Because of this, the stuff on the drive should be deleted manually, or new directories should be created/configured for the data.