Difference between revisions of "Kubernetes Persistent Volumes (PV)"
Jump to navigation
Jump to search
Line 44: | Line 44: | ||
== [[Kubernetes Persistent Volumes (PV) providers|Providers]] == | == [[Kubernetes Persistent Volumes (PV) providers|Providers]] == | ||
+ | |||
+ | |||
+ | == Metrics == | ||
+ | kubelet_volume_stats_available_bytes | ||
+ | kubelet_volume_stats_capacity_bytes | ||
+ | kubelet_volume_stats_inodes | ||
+ | kubelet_volume_stats_inodes_free | ||
+ | kubelet_volume_stats_inodes_used | ||
+ | kubelet_volume_stats_used_bytes | ||
+ | Ref: https://stackoverflow.com/questions/44718268/how-to-monitor-disk-usage-of-kubernetes-persistent-volumes | ||
== News == | == News == |
Revision as of 07:14, 27 January 2023
Kubernetes Persistent Volumes subsystem provides an API for users and administrators that abstracts details of how storage is provided from how it is consumed
Volumes: VolumeMounts: ExtraVolumes
Examples
volumes: your-vol-1: Type: ConfigMap (a volume populated by a ConfigMap) Name: prod-admin-config Optional: false
your-vol-2: Type: Secret (a volume populated by a Secret) SecretName: your-secret-name Optional: false
your-vol-3: Type: Projected (a volume that contains injected data from multiple sources) TokenExpirationSeconds: 3607 ConfigMapName: your-kube-root-ca.crt ConfigMapOptional: <nil> DownwardAPI: true
apiVersion: v1 kind: Pod metadata: name: mypod spec: containers: - name: myfrontend image: nginx volumeMounts: - mountPath: "/var/www/html" name: mypd volumes: - name: mypd persistentVolumeClaim: claimName: myclaim
spec: volumes: - name: elasticsearch-master persistentVolumeClaim: claimName: elasticsearch-master-elasticsearch-master-0 - name: mynewvolumen emptyDir: {}
Providers
Metrics
kubelet_volume_stats_available_bytes kubelet_volume_stats_capacity_bytes kubelet_volume_stats_inodes kubelet_volume_stats_inodes_free kubelet_volume_stats_inodes_used kubelet_volume_stats_used_bytes
News
Related terms
- Persistent Volume Claim (PVC)
- Volumes (Kubernetes)
kubectl apply
- Container Storage Interface (CSI)
defaultMode:
values.yml
See also
- Kubernetes storage, storage classes, PersistentVolume (PV), PVC, CSI,
kind: StorageClass, kind: PersistentVolumeClaim, kind: PersistentVolume
,kubectl [ get | describe | edit ] pvc
,volumeClaimTemplates:
,kubectl patch pv
,FailedMount
, Volume Expansion, Volume Cloning, snapshots, ExtraVolumes, NotTriggerScaleUp,volumePVCDataSource, AllowVolumeExpansion
, EKS storage, provisioner, Storage Capacity Tracking,VolumeBinding, VolumeClaimTemplate, storage.k8s.io
, CKA Storage, DoKC, EmptyDir, Volume populators,storageclass.kubernetes.io
Advertising: