Migrate the middleware to the new CRD
This commit is contained in:
@@ -58,7 +58,7 @@ resource "kubectl_manifest" "prj_certificate" {
|
||||
resource "kubectl_manifest" "prj_https_redirect" {
|
||||
count = var.create_redirect || var.component == "" ? 1 : 0
|
||||
yaml_body = <<-EOF
|
||||
apiVersion: "traefik.containo.us/v1alpha1"
|
||||
apiVersion: "traefik.io/v1alpha1"
|
||||
kind: "Middleware"
|
||||
metadata:
|
||||
name: "${local.app_slug}-https"
|
||||
|
||||
Reference in New Issue
Block a user