From 451d39bbc174f3fae151542f2efb5e22ea166da8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20MERLE?= <95630726+smerle33@users.noreply.github.com> Date: Fri, 5 Apr 2024 14:29:28 +0200 Subject: [PATCH] feat(private) add a storage class for ZRS volumes (#653) as per https://github.com/jenkins-infra/helpdesk/issues/3823#issuecomment-2036372624 create a new storage class on private to be used for ZRS multizone volumes, we need the volume to be accessible from both eastus2-1 for the arm64 nodes and eastus2-3 for our intel/amd nodes --------- Co-authored-by: Damien Duportal --- privatek8s.tf | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/privatek8s.tf b/privatek8s.tf index 010ccda4..d55d4a87 100644 --- a/privatek8s.tf +++ b/privatek8s.tf @@ -275,6 +275,19 @@ resource "kubernetes_storage_class" "azurefile_csi_premium_retain" { provider = kubernetes.privatek8s } +resource "kubernetes_storage_class" "managed_csi_premium_ZRS_retain_public_private" { + metadata { + name = "managed-csi-premium-zrs-retain" + } + storage_provisioner = "disk.csi.azure.com" + reclaim_policy = "Retain" + parameters = { + skuname = "Premium_ZRS" + } + provider = kubernetes.privatek8s + allow_volume_expansion = true +} + # Used later by the load balancer deployed on the cluster, see https://github.com/jenkins-infra/kubernetes-management/config/privatek8s.yaml resource "azurerm_public_ip" "public_privatek8s" { name = "public-privatek8s"