Difference between revisions of "Template:Alpine cp example"

From wikieduonline
Jump to navigation Jump to search
Line 11: Line 11:
 
     - name: myvolume
 
     - name: myvolume
 
       [[mountPath:]] /data
 
       [[mountPath:]] /data
   volumes:
+
   [[volumes:]]
 
   - name: myvolume
 
   - name: myvolume
 
     persistentVolumeClaim:
 
     persistentVolumeClaim:
 
       claimName: mypvctocopy
 
       claimName: mypvctocopy

Revision as of 13:48, 8 February 2024

apiVersion: v1
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

Advertising: