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