I could not reproduce the failure condition. I installed a 1-node cluster using this on Ubuntu 20.04 (Intel NUC).
This is from a user account with sudo privilege.
sudo snap install microk8s --classic --channel=1.19
sudo usermod -a -G microk8s $USER
sudo apparmor_parser -r /etc/apparmor.d/*snap-confine*
sudo apparmor_parser -r /var/lib/snapd/apparmor/profiles/snap-confine*
microk8s enable dns storage## KUBECTL
microk8s config > ~/.kube/microk8s.config
chmod 600 ~/.kube/microk8s.config
export KUBECONFIG=~./kube/microk8s.configInstall MinIO with defaults:
helm repo add minio https://helm.min.io/
helm install minio minio/minioCheck Results
## kubectl get all
get all
NAME READY STATUS RESTARTS AGE
pod/minio-848f9f7dc9-8g6zz 1/1 Running 0 92s
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/kubernetes ClusterIP 10.152.183.1 <none> 443/TCP 57m
service/minio ClusterIP 10.152.183.41 <none> 9000/TCP 92s
NAME READY UP-TO-DATE AVAILABLE AGE
deployment.apps/minio 1/1 1 1 92s
NAME DESIRED CURRENT READY AGE
replicaset.apps/minio-848f9f7dc9 1 1 1 92s
## kubectl get pvc
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
minio Bound pvc-d2696298-cebc-49fc-b828-82b88a2661a0 500Gi RWO microk8s-hostpath 12m
## kubectl get pv
NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGE
pvc-d2696298-cebc-49fc-b828-82b88a2661a0 500Gi RWO Delete Bound default/minio microk8s-hostpath 12m## kubectl get sc
NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
microk8s-hostpath (default) microk8s.io/hostpath Delete Immediate false 21m
## kubectl describe sc/microk8s-hostpath
Name: microk8s-hostpath
IsDefaultClass: Yes
Annotations: kubectl.kubernetes.io/last-applied-configuration={"apiVersion":"storage.k8s.io/v1","kind":"StorageClass","metadata":{"annotations":{"storageclass.kubernetes.io/is-default-class":"true"},"name":"microk8s-hostpath"},"provisioner":"microk8s.io/hostpath"}
,storageclass.kubernetes.io/is-default-class=true
Provisioner: microk8s.io/hostpath
Parameters: <none>
AllowVolumeExpansion: <unset>
MountOptions: <none>
ReclaimPolicy: Delete
VolumeBindingMode: Immediate
Events: <none>