Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save antigenius0910/223fcd0200435608cd8436946fb60803 to your computer and use it in GitHub Desktop.
Save antigenius0910/223fcd0200435608cd8436946fb60803 to your computer and use it in GitHub Desktop.
Your setup for Istio gateway
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