Kubernetes: creating a hostPath PersistentVolume in a single node cluster

To create a ‘hostPath’ PersistentVolume in a single node cluster (do not use in a cluster with more than 1 node): kind: PersistentVolume apiVersion: v1 metadata: name: pv1 labels: type: local spec: storageClassName: manual capacity: storage: 1Gi accessModes: – ReadWriteOnce hostPath: path: “/your-path-for-vol1” If the above is pv1.yaml, apply with: kubectl apply -f pv1.yaml For …

Helm install of MariaDB on bare metal Kubernetes: “mkdir: cannot create directory ‘/bitnami/mariadb/data’: Permission denied”

Installing the MariaDB chart with Helm on Kubernetes, I ran into issues with permissions on the folder that I created for the PersistentVolume: INFO ==> ** Starting MariaDB setup ** INFO ==> Validating settings in MYSQL_/MARIADB_ env vars.. INFO ==> Initializing mariadb database… mkdir: cannot create directory ‘/bitnami/mariadb/data’: Permission denied INFO ==> Stopping mariadb… Per …