temp-pvc-pod.yaml 313 B

1234567891011121314151617
  1. # A one-off to mount PVCs & copy data to them
  2. apiVersion: v1
  3. kind: Pod
  4. metadata:
  5. name: nginx
  6. namespace: <namespace>
  7. spec:
  8. containers:
  9. - name: nginx
  10. image: nginx:1.14.2
  11. volumeMounts:
  12. - mountPath: /data
  13. name: data
  14. volumes:
  15. - name: data
  16. persistentVolumeClaim:
  17. claimName: <pvc>