Difference between revisions of "Template:Alpine cp example"
Jump to navigation
Jump to search
Line 13: | Line 13: | ||
- name: myvolume | - name: myvolume | ||
[[mountPath:]] /myvolume | [[mountPath:]] /myvolume | ||
− | [[volumes:]] | + | [[Kubernetes volumes|volumes:]] |
- name: myvolume | - name: myvolume | ||
persistentVolumeClaim: | persistentVolumeClaim: | ||
claimName: myPVCtoMount | claimName: myPVCtoMount |
Revision as of 16:09, 8 February 2024
apiVersion: v1 kind: Pod metadata: name: myalpinewithvolume spec: containers: - name: alpine image: alpine:latest command: ['ash'] tty: true stdin: true volumeMounts: - name: myvolume mountPath: /myvolume volumes: - name: myvolume persistentVolumeClaim: claimName: myPVCtoMount
Advertising: