Difference between revisions of "Template:Alpine cp example"

From wikieduonline
Jump to navigation Jump to search
(Replaced content with "{{alpine with volume}}")
Tags: Replaced, Mobile web edit, Mobile edit
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
apiVersion: v1
+
{{alpine with volume}}
[[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
 

Latest revision as of 16:11, 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: