Any configuration for microk8s storage addon?

Where can I find a description of this addon?
Enabling this addon does what?

From the addon documentation

storage: Create a default storage class which allocates storage from a
host directory.

This addon isn’t very useful for a multi-node cluster, as it uses hostpath.

For multiple nodes setup using longhorn, rook , openebs etc is more appropriate.

1 Like

I saw the sentence “Create a default storage class which allocates storage from a
host directory.” too, is this sentence the only documentation?

For development, on a single node, doing something similar to docker-compose volumes seems reasonable. Am I missing something?

Does this addon make the “kind: PersistentVolume” allow “hostPath:” to be used?

Hi,

This addon deploys a hostpath-provisioner which will automatically create the PersistentVolume resource with the path in the host whenever a PersistentVolumeClaim is created.

This also creates a default StorageClass.

Check this [1] the enable script and [2] the manifest file

[1] https://github.com/ubuntu/microk8s/blob/master/microk8s-resources/actions/enable.storage.sh
[2] https://github.com/ubuntu/microk8s/blob/master/microk8s-resources/actions/storage.yaml

1 Like