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: ['ash'] | + | command: ['[[ash]]'] |
[[tty:]] true | [[tty:]] true | ||
[[stdin:]] true | [[stdin:]] true | ||
[[volumeMounts:]] | [[volumeMounts:]] | ||
- name: myvolume | - name: myvolume | ||
− | [[mountPath:]] / | + | [[mountPath:]] /myvolume |
[[volumes:]] | [[volumes:]] | ||
- name: myvolume | - name: myvolume | ||
persistentVolumeClaim: | persistentVolumeClaim: | ||
claimName: myPVCtoMount | claimName: myPVCtoMount |
Revision as of 16:07, 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: /myvolume volumes: - name: myvolume persistentVolumeClaim: claimName: myPVCtoMount
Advertising: