k3s/examples/gce-pd/v1beta3/testpd.yaml

22 lines
487 B
YAML

apiVersion: v1beta3
kind: Pod
metadata:
labels:
test: testpd
name: testpd
spec:
containers:
- name: testpd
image: gcr.io/google_containers/pause
volumeMounts:
# name must match the volume name below
- name: testpd
# mount path within the container
mountPath: /testpd
volumes:
- name: testpd
gcePersistentDisk:
# This GCE PD must already exist.
pdName: %insert_pd_name_here%
fsType: ext4