k8s.io/perf-tests/clusterloader2@v0.0.0-20240304094227-64bdb12da87e/pkg/prometheus/manifests/0ssd-storage-class.yaml (about)

     1  {{$PROMETHEUS_STORAGE_CLASS_PROVISIONER := DefaultParam .PROMETHEUS_STORAGE_CLASS_PROVISIONER "kubernetes.io/gce-pd"}}
     2  {{$PROMETHEUS_STORAGE_CLASS_VOLUME_TYPE := DefaultParam .PROMETHEUS_STORAGE_CLASS_VOLUME_TYPE "pd-ssd"}}
     3  
     4  kind: StorageClass
     5  apiVersion: storage.k8s.io/v1
     6  metadata:
     7    name: ssd
     8  provisioner: {{$PROMETHEUS_STORAGE_CLASS_PROVISIONER}}
     9  {{if eq $PROMETHEUS_STORAGE_CLASS_PROVISIONER "kubernetes.io/azure-disk"}}
    10  parameters:
    11    kind: Managed
    12    storageaccounttype: {{$PROMETHEUS_STORAGE_CLASS_VOLUME_TYPE}}
    13    cachingmode: ReadOnly
    14  volumeBindingMode: WaitForFirstConsumer
    15  allowVolumeExpansion: true
    16  {{else}}
    17  parameters:
    18    type: {{$PROMETHEUS_STORAGE_CLASS_VOLUME_TYPE}}
    19  {{end}}
    20  {{if .RetainPD}}
    21  reclaimPolicy: Retain
    22  {{end}}