...
Mount volume in container (make sure you replace the claimName with your own claim)
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
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 |
...