Skip to content

Commit

Permalink
feat(private) add a storage class for ZRS volumes (#653)
Browse files Browse the repository at this point in the history
as per
jenkins-infra/helpdesk#3823 (comment)
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 <damien.duportal@gmail.com>
  • Loading branch information
smerle33 and dduportal authored Apr 5, 2024
1 parent 82b8d43 commit 451d39b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions privatek8s.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 451d39b

Please sign in to comment.