Difference between revisions of "Kubectl get volumesnapshot"

From wikieduonline
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
 
  [[kubectl get]] [[volumesnapshot]]
 
  [[kubectl get]] [[volumesnapshot]]
 +
kubectl get volumesnapshot [[-o yaml]]
  
 
  [[kubectl get]] [[volumesnapshot]] -A
 
  [[kubectl get]] [[volumesnapshot]] -A
Line 7: Line 8:
 
  kubectl get volumesnapshot
 
  kubectl get volumesnapshot
 
  NAME                READYTOUSE  SOURCEPVC                                  SOURCESNAPSHOTCONTENT  RESTORESIZE  SNAPSHOTCLASS  SNAPSHOTCONTENT  CREATIONTIME  AGE
 
  NAME                READYTOUSE  SOURCEPVC                                  SOURCESNAPSHOTCONTENT  RESTORESIZE  SNAPSHOTCLASS  SNAPSHOTCONTENT  CREATIONTIME  AGE
  new-snapshot-test                pvc-9f38b08a-89db-4f93-98f9-921f1a5cc37d                                                                                        
+
  new-snapshot-test                pvc-9f38b08a-89db-4f93-98f9-921f1a5cc37d                                                               2m15s
2m15s
 
  
  

Latest revision as of 08:52, 23 October 2023

kubectl get volumesnapshot
kubectl get volumesnapshot -o yaml
kubectl get volumesnapshot -A
No resources found
kubectl get volumesnapshot
NAME                READYTOUSE   SOURCEPVC                                  SOURCESNAPSHOTCONTENT   RESTORESIZE   SNAPSHOTCLASS   SNAPSHOTCONTENT   CREATIONTIME   AGE
new-snapshot-test                pvc-9f38b08a-89db-4f93-98f9-921f1a5cc37d                                                                2m15s


apiVersion: snapshot.storage.k8s.io/v1
kind: VolumeSnapshotContent
metadata:
  annotations:
  - snapshot.storage.kubernetes.io/allowVolumeModeChange: "true"
  name: new-snapshot-content-test
spec:
  deletionPolicy: Delete
  driver: hostpath.csi.k8s.io
  source:
    snapshotHandle: 7bdd0de3-aaeb-11e8-9aae-0242ac110002
  sourceVolumeMode: Filesystem
  volumeSnapshotRef:
    name: new-snapshot-test
    namespace: default


Activities[edit]

Related[edit]

See also[edit]

Advertising: