Difference between revisions of "Template:Alpine cp example"

From wikieduonline
Jump to navigation Jump to search
(Created page with " apiVersion: v1 kind: Pod metadata: name: myalpinedataaccess spec: containers: - name: alpine image: alpine:latest command: ['sleep', 'infinity'] ...")
 
(Replaced content with "{{alpine with volume}}")
Tags: Replaced, Mobile web edit, Mobile edit
 
(7 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: mypvc
 
      [[mountPath:]] /data
 
  volumes:
 
  - name: mypvc
 
    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: