Skip to content

Commit

Permalink
feat(publick8s): add a storage class for ZRS (#526)
Browse files Browse the repository at this point in the history
as per
jenkins-infra/helpdesk#3619 (comment)
and following this page
https://learn.microsoft.com/fr-fr/rest/api/storagerp/srp_sku_types

this PR create a new storage class using ZRS.
  • Loading branch information
smerle33 authored Nov 27, 2023
1 parent bd0e0f7 commit 3b5136f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions publick8s.tf
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,19 @@ resource "kubernetes_storage_class" "managed_csi_premium_retain_public" {
allow_volume_expansion = true
}

resource "kubernetes_storage_class" "managed_csi_premium_ZRS_retain_public" {
metadata {
name = "managed-csi-premium-zrs-retain"
}
storage_provisioner = "disk.csi.azure.com"
reclaim_policy = "Retain"
parameters = {
skuname = "Premium_ZRS"
}
provider = kubernetes.publick8s
allow_volume_expansion = true
}

resource "kubernetes_storage_class" "azurefile_csi_premium_retain_public" {
metadata {
name = "azurefile-csi-premium-retain"
Expand Down

0 comments on commit 3b5136f

Please sign in to comment.