Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Mount volume in container (make sure you replace the claimName with your own claim)

Code Block
languageyml
titlePod with PVC
collapsetrue
apiVersion: v1
kind: Pod
metadata:
  name: pod-with-pvc
spec:
  restartPolicy: Never
  volumes:
  - name: data
    persistentVolumeClaim:
      claimName: kooper-pvc
  containers:
  - name: ubuntu
    image: ubuntu
    command: ["sleep", "3600"]
    volumeMounts:
    - name: data
      mountPath: /data

...