Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions contexts/_template/features/provider-aws.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ kustomize:
- policy-resources
components:
- aws-ebs
cleanup:
- pvcs
substitutions:
single_storage_type: ${cluster.storage?.single_storage_type ?? "gp3"}
6 changes: 4 additions & 2 deletions contexts/_template/features/provider-azure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,7 @@ kustomize:
path: csi
dependsOn:
- policy-resources
cleanup:
- pvcs
components:
- azure-disk
substitutions:
single_storage_type: ${cluster.storage?.single_storage_type ?? "StandardSSD_LRS"}
7 changes: 7 additions & 0 deletions contexts/_template/schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,13 @@ properties:
default: ["/var/mnt/local"]
description: Additional volume mounts for workers
additionalProperties: false
storage:
type: object
properties:
single_storage_type:
type: string
description: Storage type for the single storage class (e.g., gp3 for AWS, StandardSSD_LRS for Azure)
additionalProperties: false
additionalProperties: false

# DNS configuration
Expand Down
3 changes: 2 additions & 1 deletion kustomize/csi/aws-ebs/storageclass.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ metadata:
storageclass.kubernetes.io/is-default-class: "true"
provisioner: ebs.csi.aws.com
volumeBindingMode: WaitForFirstConsumer
allowVolumeExpansion: true
parameters:
type: gp3
type: ${single_storage_type:-gp3}
encrypted: "true"
fsType: ext4
reclaimPolicy: Delete
4 changes: 4 additions & 0 deletions kustomize/csi/azure-disk/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component
resources:
- storageclass.yaml
14 changes: 14 additions & 0 deletions kustomize/csi/azure-disk/storageclass.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: single
annotations:
storageclass.kubernetes.io/is-default-class: "true"
provisioner: disk.csi.azure.com
volumeBindingMode: WaitForFirstConsumer
allowVolumeExpansion: true
parameters:
skuName: ${single_storage_type:-StandardSSD_LRS}
cachingMode: ReadWrite
fsType: ext4
reclaimPolicy: Delete
Loading