Aks storage classes
Jump to navigation
Jump to search
HDD
https://faultbucket.ca/2022/02/aks-storageclass-for-standard-hdd-managed-disk/
kind: StorageClass apiVersion: storage.k8s.io/v1 metadata: name: managed-csi-hdd provisioner: disk.csi.azure.com reclaimPolicy: Retain allowVolumeExpansion: True volumeBindingMode: WaitForFirstConsumer parameters: skuname: Standard_LRS
apiVersion: v1 kind: PersistentVolumeClaim metadata: name: test-hdd-disk spec: accessModes: - ReadWriteOnce storageClassName: managed-csi-hdd resources: requests: storage: 5Gi --- kind: Pod apiVersion: v1 metadata: name: teststorage-pod spec: nodeSelector: "kubernetes.io/os": linux containers: - name: teststorage image: mcr.microsoft.com/oss/nginx/nginx:1.15.5-alpine volumeMounts: - mountPath: "/mnt/azurehdd" name: hddvolume volumes: - name: hddvolume persistentVolumeClaim: claimName: test-hdd-disk
kind: StorageClass apiVersion: storage.k8s.io/v1 metadata: name: managed-csi-hdd provisioner: disk.csi.azure.com reclaimPolicy: Retain allowVolumeExpansion: True volumeBindingMode: WaitForFirstConsumer parameters: skuname: Standard_LRS