Difference between revisions of "Kubectl cp"

From wikieduonline
Jump to navigation Jump to search
Line 19: Line 19:
 
   - name: mypvc
 
   - name: mypvc
 
     persistentVolumeClaim:
 
     persistentVolumeClaim:
       claimName: mypvc
+
       claimName: mypvctocopy
  
  

Revision as of 22:38, 23 October 2023

kubectl cp


apiVersion: v1
kind: Pod
metadata:
  name: dataaccess
spec:
  containers:
  - name: alpine
    image: alpine:latest
    command: ['sleep', 'infinity']
    volumeMounts:
    - name: mypvc
      mountPath: /data
  volumes:
  - name: mypvc
    persistentVolumeClaim:
      claimName: mypvctocopy


See also

Advertising: