Difference between revisions of "VolumeMounts:"
Jump to navigation
Jump to search
(Removed redirect to VolumeMounts) Tag: Removed redirect |
|||
Line 1: | Line 1: | ||
+ | * https://kubernetes.io/docs/concepts/storage/volumes/ | ||
+ | <pre> | ||
+ | apiVersion: v1 | ||
+ | kind: Pod | ||
+ | metadata: | ||
+ | name: test-ebs | ||
+ | spec: | ||
+ | containers: | ||
+ | - image: registry.k8s.io/test-webserver | ||
+ | name: test-container | ||
+ | volumeMounts: | ||
+ | - mountPath: /test-ebs | ||
+ | name: test-volume | ||
+ | volumes: | ||
+ | - name: test-volume | ||
+ | # This AWS EBS volume must already exist. | ||
+ | awsElasticBlockStore: | ||
+ | volumeID: "<volume id>" | ||
+ | fsType: ext4 | ||
+ | </pre> | ||
* {{K8s sto}} | * {{K8s sto}} |
Revision as of 08:48, 2 November 2022
apiVersion: v1 kind: Pod metadata: name: test-ebs spec: containers: - image: registry.k8s.io/test-webserver name: test-container volumeMounts: - mountPath: /test-ebs name: test-volume volumes: - name: test-volume # This AWS EBS volume must already exist. awsElasticBlockStore: volumeID: "<volume id>" fsType: ext4
- 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: