kubectl get pvc -o yaml

From wikieduonline
Jump to navigation Jump to search

kubectl get pvc -o yaml


apiVersion: v1
items:
- apiVersion: v1
  kind: PersistentVolumeClaim
  metadata:
    annotations:
      meta.helm.sh/release-name: myprometheus
      meta.helm.sh/release-namespace: default
      volume.beta.kubernetes.io/storage-provisioner: ebs.csi.aws.com
      volume.kubernetes.io/selected-node: ip-10-0-1-47.us-east-2.compute.internal
      volume.kubernetes.io/storage-provisioner: ebs.csi.aws.com
    creationTimestamp: "2022-09-25T22:13:30Z"
    finalizers:
    - kubernetes.io/pvc-protection
    labels:
      app: prometheus
      app.kubernetes.io/managed-by: Helm
      chart: prometheus-15.13.0
      component: alertmanager
      heritage: Helm
      release: myprometheus
    name: myprometheus-alertmanager
    namespace: default
    resourceVersion: "9839"
    uid: 26129e4c-1234-4049-84dd-c00f8e5d66a3
  spec:
    accessModes:
    - ReadWriteOnce
    resources:
      requests:
        storage: 2Gi
    storageClassName: gp2
    volumeMode: Filesystem
  status:
    phase: Pending
- apiVersion: v1
  kind: PersistentVolumeClaim
  metadata:
    annotations:
      meta.helm.sh/release-name: myprometheus
      meta.helm.sh/release-namespace: default
      volume.beta.kubernetes.io/storage-provisioner: ebs.csi.aws.com
      volume.kubernetes.io/selected-node: ip-10-0-1-47.us-east-2.compute.internal
      volume.kubernetes.io/storage-provisioner: ebs.csi.aws.com
    creationTimestamp: "2022-09-25T22:13:30Z"
    finalizers:
    - kubernetes.io/pvc-protection
    labels:
      app: prometheus
      app.kubernetes.io/managed-by: Helm
      chart: prometheus-15.13.0
      component: server
      heritage: Helm
      release: myprometheus
    name: myprometheus-server
    namespace: default
    resourceVersion: "9862"
    uid: 4e14416c-1234-4d39-b749-9ce0fa98d597
  spec:
    accessModes:
    - ReadWriteOnce
    resources:
      requests:
        storage: 8Gi
    storageClassName: gp2
    volumeMode: Filesystem
  status:
    phase: Pending
kind: List
metadata:
  resourceVersion: ""


See also[edit]

Advertising: