Kubernetes manifests · Config and storage

Mount a volume

Mount a claim into a container.

containers:
  - name: app
    image: myapp:1.0
    volumeMounts:
      - name: data
        mountPath: /var/lib/app
volumes:
  - name: data
    persistentVolumeClaim:
      claimName: data

Official Kubernetes manifests documentation

More config and storage commands

All config and storage commands · Kubernetes manifests cheatsheet

Was this page helpful?