Skip to content

Instantly share code, notes, and snippets.

@lexfrei
Created September 8, 2021 20:56
Show Gist options
  • Select an option

  • Save lexfrei/f33256f6d284e991569a58785492f0e2 to your computer and use it in GitHub Desktop.

Select an option

Save lexfrei/f33256f6d284e991569a58785492f0e2 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: PersistentVolume
metadata:
annotations:
pv.kubernetes.io/provisioned-by: driver.longhorn.io
creationTimestamp: "2021-07-30T14:37:49Z"
finalizers:
- kubernetes.io/pv-protection
- external-attacher/driver-longhorn-io
name: pvc-ecb51876-eac3-40d1-949a-14b2a03b3508
resourceVersion: "25381"
uid: 8ada6b65-8b49-4608-aeb2-1aff8e54b6b6
spec:
accessModes:
- ReadWriteOnce
capacity:
storage: 1Gi
claimRef:
apiVersion: v1
kind: PersistentVolumeClaim
name: grafana
namespace: monitoring
resourceVersion: "25198"
uid: ecb51876-eac3-40d1-949a-14b2a03b3508
csi:
driver: driver.longhorn.io
fsType: ext4
volumeAttributes:
nodeSelector: storage
numberOfReplicas: "3"
staleReplicaTimeout: "30"
storage.kubernetes.io/csiProvisionerIdentity: 1627646949713-8081-driver.longhorn.io
volumeHandle: pvc-ecb51876-eac3-40d1-949a-14b2a03b3508
persistentVolumeReclaimPolicy: Delete
storageClassName: longhorn-main
volumeMode: Filesystem
status:
phase: Bound
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
annotations:
meta.helm.sh/release-name: grafana
meta.helm.sh/release-namespace: monitoring
pv.kubernetes.io/bind-completed: "yes"
pv.kubernetes.io/bound-by-controller: "yes"
volume.beta.kubernetes.io/storage-provisioner: driver.longhorn.io
creationTimestamp: "2021-07-30T14:37:44Z"
finalizers:
- kubernetes.io/pvc-protection
labels:
app.kubernetes.io/instance: grafana
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: grafana
app.kubernetes.io/version: 8.1.2
helm.sh/chart: grafana-6.16.4
name: grafana
namespace: monitoring
resourceVersion: "8925790"
uid: ecb51876-eac3-40d1-949a-14b2a03b3508
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storageClassName: longhorn-main
volumeMode: Filesystem
volumeName: pvc-ecb51876-eac3-40d1-949a-14b2a03b3508
status:
accessModes:
- ReadWriteOnce
capacity:
storage: 1Gi
phase: Bound
apiVersion: longhorn.io/v1beta1
kind: Volume
metadata:
creationTimestamp: "2021-07-30T14:37:45Z"
finalizers:
- longhorn.io
generation: 44
labels:
longhornvolume: pvc-ecb51876-eac3-40d1-949a-14b2a03b3508
recurring-job-group.longhorn.io/default: enabled
name: pvc-ecb51876-eac3-40d1-949a-14b2a03b3508
namespace: longhorn-system
resourceVersion: "10286171"
uid: 52ca0a6b-cd08-42b0-8bd0-370cc6011e6f
spec:
Standby: false
accessMode: rwo
backingImage: ""
baseImage: ""
dataLocality: disabled
dataSource: ""
disableFrontend: false
diskSelector: null
encrypted: false
engineImage: longhornio/longhorn-engine:v1.2.0
fromBackup: ""
frontend: blockdev
lastAttachedBy: ""
migratable: false
migrationNodeID: ""
nodeID: node03
nodeSelector:
- storage
numberOfReplicas: 3
replicaAutoBalance: ""
revisionCounterDisabled: false
size: "1073741824"
staleReplicaTimeout: 30
status:
actualSize: 103870464
cloneStatus:
snapshot: ""
sourceVolume: ""
state: ""
conditions:
restore:
lastProbeTime: ""
lastTransitionTime: "2021-07-30T14:37:47Z"
message: ""
reason: ""
status: "False"
type: restore
scheduled:
lastProbeTime: ""
lastTransitionTime: "2021-08-27T16:41:56Z"
message: ""
reason: ""
status: "True"
type: scheduled
toomanysnapshots:
lastProbeTime: ""
lastTransitionTime: "2021-09-04T22:21:40Z"
message: Snapshots count is 249 over the warning threshold 100
reason: TooManySnapshots
status: "True"
type: toomanysnapshots
currentImage: longhornio/longhorn-engine:v1.2.0
currentNodeID: node03
expansionRequired: false
frontendDisabled: false
isStandby: false
kubernetesStatus:
lastPVCRefAt: ""
lastPodRefAt: ""
namespace: monitoring
pvName: pvc-ecb51876-eac3-40d1-949a-14b2a03b3508
pvStatus: Bound
pvcName: grafana
workloadsStatus:
- podName: grafana-fdcbfd6b8-crk5s
podStatus: Running
workloadName: grafana-fdcbfd6b8
workloadType: ReplicaSet
lastBackup: ""
lastBackupAt: ""
lastDegradedAt: "2021-09-04T22:22:32Z"
ownerID: node03
pendingNodeID: ""
remountRequestedAt: "2021-09-04T22:21:20Z"
restoreInitiated: false
restoreRequired: false
robustness: degraded
shareEndpoint: ""
shareState: ""
state: attached
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment