Playing Game of Pods, Drupal scenario. Cannot seem to get the `drupal-mysql-pv-h . . .

Joe:
Playing Game of Pods, Drupal scenario. Cannot seem to get the drupal-mysql-pv-hostpath to pass. Only hint is “Configure drupal-mysql-pv with hostPath = /drupal-mysql-data (create the directory on Worker Nodes)”
My drupal-mysql-pv looks like this (what am I missing?):

---
apiVersion: v1
kind: PersistentVolume
metadata:
 name: drupal-mysql-pv
spec:
 accessModes: [ "ReadWriteOnce" ]
 capacity:
   storage: 5Gi
 hostPath:
   path: /drupal-mysql-data

unnivkn:

apiVersion: v1
kind: PersistentVolume
metadata:
  name: drupal-mysql-pv
  labels:
    type: local
spec:
  ##storageClassName: manual
  capacity:
    storage: 5Gi
  accessModes:
    - ReadWriteOnce
  hostPath:
    path: "/drupal-mysql-data"

Did you created /drupal-mysql-data directory ?

Joe:
Where am I supposed to create the directory? On node01 itself?

unnivkn:
as per the question its on worker node. (create the directory on Worker Nodes)". Usually you have to create the directory on the host where the pod is deploying.

unnivkn:

Daz Mac:
Or set parameter DirectoryorCreate

https://kubernetes.io/docs/concepts/storage/volumes/#hostpath|https://kubernetes.io/docs/concepts/storage/volumes/#hostpath

I tried using DirectoryorCreate but that didn’t help.
Have that been verified in this KodeKloud lab environment?

There is an issue since the update where you cannot ssh onto the node to create the directory. I made a post which goes into detail here Game of Pods: Cannot ssh into nodes.