Difference between revisions of "Template:Alpine cp example"
Jump to navigation
Jump to search
Line 9: | Line 9: | ||
command: ['sleep', 'infinity'] | command: ['sleep', 'infinity'] | ||
[[volumeMounts:]] | [[volumeMounts:]] | ||
− | - name: | + | - name: myvolume |
[[mountPath:]] /data | [[mountPath:]] /data | ||
volumes: | volumes: | ||
− | - name: | + | - name: myvolume |
persistentVolumeClaim: | persistentVolumeClaim: | ||
claimName: mypvctocopy | claimName: mypvctocopy |
Revision as of 13:47, 8 February 2024
apiVersion: v1 kind: Pod metadata: name: myalpinedataaccess spec: containers: - name: alpine image: alpine:latest command: ['sleep', 'infinity'] volumeMounts: - name: myvolume mountPath: /data volumes: - name: myvolume persistentVolumeClaim: claimName: mypvctocopy
Advertising: