Early days for me, so had a basic question. Has anyone tried game of pods in the . . .

DK:
Early days for me, so had a basic question.
Has anyone tried game of pods in the course ? I am getting an error in Bravo while executing the following using pv.yaml

pv.yaml

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

controlplane $ ls
controlplane $ ssh node01
Warning: Permanently added ‘node01,172.17.0.64’ (ECDSA) to the list of known hosts.
node01 $ mkdir /drupal-data
node01 $ mkdir /drupal-mysql-data
node01 $ vi pv.yaml
node01 $ kubectl apply -f pv.yaml
error: unable to recognize “pv.yaml”: no matches for kind “PersistentVolume” in version “”
node01 $ kubectl create -f pv.yaml
Error from server (NotFound): the server could not find the requested resource

Any ideas if I am missing something here ?

Markeen Rice-Wallace:
Are you on the right server? Based on the log, you create the manifest on the control plane, but you are attempting to create it on the node01. You haven’t copied the file there yet

Priti Talukder:
Once you create directory exit from node01 and create PV from controplane

DK:
Thank you Priti, it worked!! I was indeed creating pv on node01. Thank you Markeen for troubleshooting tips.