Created
April 5, 2022 16:24
-
-
Save antigenius0910/223fcd0200435608cd8436946fb60803 to your computer and use it in GitHub Desktop.
Your setup for Istio gateway
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "kubernetes_manifest" "k8s-istio-gateway" { | |
depends_on = [ | |
kubernetes_manifest.k8s-wildcard-cert | |
] | |
provider = kubernetes | |
manifest = { | |
"apiVersion" = "networking.istio.io/v1alpha3" | |
"kind" = "Gateway" | |
"metadata" = { | |
name = "istio-gateway" | |
namespace = "istio-system" | |
} | |
"spec" = { | |
"selector" = { | |
"istio" = "ingressgateway" | |
} | |
"servers" = [{ | |
"port" = { | |
"number" = 443 | |
"name" = "https" | |
"protocol" = "HTTPS" | |
}, | |
"tls" = { | |
"mode" = "SIMPLE" | |
"credentialName" = "k8s-wildcard-cert" | |
}, | |
"hosts" = [ | |
"*.k8s.test.com" | |
] | |
}] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment