[meta] format kuard.tf

pull/37/head
Alpha Chen 3 years ago
parent 3762903146
commit 267fff9c31

@ -18,9 +18,9 @@ resource "kubernetes_deployment" "kuard" {
} }
spec { spec {
container { container {
image = "gcr.io/kuar-demo/kuard-amd64:1" image = "gcr.io/kuar-demo/kuard-amd64:1"
image_pull_policy = "Always" image_pull_policy = "Always"
name = "kuard" name = "kuard"
port { port {
container_port = 8080 container_port = 8080
} }
@ -37,9 +37,9 @@ resource "kubernetes_service" "kuard" {
spec { spec {
port { port {
port = 80 port = 80
target_port = 8080 target_port = 8080
protocol = "TCP" protocol = "TCP"
} }
selector = { selector = {
app = "kuard" app = "kuard"
@ -51,8 +51,8 @@ resource "kubernetes_ingress_v1" "kuard" {
metadata { metadata {
name = "kuard" name = "kuard"
annotations = { annotations = {
"kubernetes.io/ingress.class" = "nginx" "kubernetes.io/ingress.class" = "nginx"
"cert-manager.io/issuer" = "letsencrypt-prod" "cert-manager.io/cluster-issuer" = "letsencrypt-prod"
} }
} }
@ -67,7 +67,7 @@ resource "kubernetes_ingress_v1" "kuard" {
host = "kuard.${var.domain}" host = "kuard.${var.domain}"
http { http {
path { path {
path = "/" path = "/"
path_type = "Prefix" path_type = "Prefix"
backend { backend {
service { service {

Loading…
Cancel
Save