1 Answers
I figured out the YAML validation and parsing errors and refactored gke-volpod.yml to this (remember to indent appropriately and modify bullets to dashes):
apiVersion: v1
kind: Pod
metadata:
name: volpod
spec:
containers:
- name: ubuntu-ctr
image: ubuntu:latest
command:
/bin/bash
"-c"
"sleep 60m"
imagePullPolicy: IfNotPresent
volumeMounts:
- mountPath: /data
name: data
volumes:
- name: data
persistentVolumeClaim:
claimName: pvc1