Difference between revisions of "Kubectl cp"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
* https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#cp | * https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#cp | ||
[[kubectl]] cp | [[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: mypvc | ||
Revision as of 22:37, 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: mypvc
See also
cp
,dd
,sftp
,scp
,rsync
,casync
,mv
,fio
,ln
,docker cp, kubectl cp
,minikube cp
,multipass transfer
,Copy-Item
,Xcopy
kubectl
: [cp | config | create
|delete
|edit | explain |
apply
|exec
|get
|set
|drain | uncordon | rolling-update
|rollout
|logs
|run
|auth
|label | annotate
|version
|top
|diff
|debug
|replace
|describe
|port-forward | proxy
|scale
|rollout
|api-resources
| expose deployment | expose | patch | attach | get endpoints | ~/.kube/config | kubectl logs --help | kubectl --help, kubectl-convert, kubectl autoscale, kubectl.kubernetes.io
Advertising: