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 ?