Skip to content

Commit

Permalink
remove explicit storage class
Browse files Browse the repository at this point in the history
  • Loading branch information
kenafoster committed Mar 20, 2024
1 parent 1a537d7 commit 6f96c0b
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,11 @@ resource "kubernetes_service_account" "main" {

resource "kubernetes_persistent_volume_claim" "traefik_certs_pvc" {
metadata {
name = "traefik-ingress-certs"
name = "traefik-ingress-certs"
namespace = var.namespace
}
spec {
access_modes = ["ReadWriteOnce"]
storage_class_name="gp2"
resources {
requests = {
storage = "5Gi"
Expand Down Expand Up @@ -232,9 +231,9 @@ resource "kubernetes_deployment" "main" {
image = "${var.traefik-image.image}:${var.traefik-image.tag}"
name = var.name

volume_mount {
volume_mount {
mount_path = "/mnt/acme-certificates"
name = "acme-certificates"
name = "acme-certificates"
}
security_context {
capabilities {
Expand Down Expand Up @@ -347,9 +346,9 @@ resource "kubernetes_deployment" "main" {
success_threshold = 1
}
}
volume {
volume {
name = "acme-certificates"
persistent_volume_claim {
persistent_volume_claim {
claim_name = kubernetes_persistent_volume_claim.traefik_certs_pvc.metadata.0.name
}
}
Expand Down

0 comments on commit 6f96c0b

Please sign in to comment.