Difference between revisions of "Kubernetes HostPath volume provider"
Jump to navigation
Jump to search
(9 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
https://kubernetes.io/docs/concepts/storage/volumes/#hostpath | https://kubernetes.io/docs/concepts/storage/volumes/#hostpath | ||
+ | apiVersion: v1 | ||
+ | kind: PersistentVolume | ||
+ | metadata: | ||
+ | name: pv0001 | ||
+ | spec: | ||
+ | accessModes: | ||
+ | - ReadWriteOnce | ||
+ | capacity: | ||
+ | storage: 5Gi | ||
+ | hostPath: | ||
+ | path: /data/pv0001/ | ||
+ | |||
+ | |||
+ | {{Kind: PersitentVolume with hostPath}} | ||
[[cephfs]] | [[cephfs]] | ||
Line 10: | Line 24: | ||
[[nfs]] https://kubernetes.io/docs/concepts/storage/volumes/#nfs | [[nfs]] https://kubernetes.io/docs/concepts/storage/volumes/#nfs | ||
[[persistentVolumeClaim]] https://kubernetes.io/docs/concepts/storage/volumes/#persistentVolumeClaim | [[persistentVolumeClaim]] https://kubernetes.io/docs/concepts/storage/volumes/#persistentVolumeClaim | ||
− | [[secret]] | + | [[Kubernetes secrets|secret]] |
+ | [[csi]] https://kubernetes.io/docs/concepts/storage/volumes/#csi | ||
== Related == | == Related == | ||
* [[Kubernetes Persistent Volumes (PV)]] | * [[Kubernetes Persistent Volumes (PV)]] | ||
− | * [[minikube]] | + | * [[Minikube]]: <code>[[k8s.io/minikube-hostpath]]</code>, supported of the box. |
+ | * [[subPath]] https://kubernetes.io/docs/concepts/storage/volumes/#using-subpath | ||
== See also == | == See also == |
Latest revision as of 12:15, 8 February 2024
https://kubernetes.io/docs/concepts/storage/volumes/#hostpath
apiVersion: v1 kind: PersistentVolume metadata: name: pv0001 spec: accessModes: - ReadWriteOnce capacity: storage: 5Gi hostPath: path: /data/pv0001/
apiVersion: v1 kind: PersistentVolume metadata: name: task-pv-volume labels: type: local spec: storageClassName: manual capacity: storage: 10Gi accessModes: - ReadWriteOnce hostPath: path: "/mnt/data"
cephfs configMap iscsi local https://kubernetes.io/docs/concepts/storage/volumes/#local nfs https://kubernetes.io/docs/concepts/storage/volumes/#nfs persistentVolumeClaim https://kubernetes.io/docs/concepts/storage/volumes/#persistentVolumeClaim secret csi https://kubernetes.io/docs/concepts/storage/volumes/#csi
Related[edit]
- Kubernetes Persistent Volumes (PV)
- Minikube:
k8s.io/minikube-hostpath
, supported of the box. - subPath https://kubernetes.io/docs/concepts/storage/volumes/#using-subpath
See also[edit]
- 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: