update echo app exposed port[ci skip]

This commit is contained in:
viktorbarzin 2023-04-09 20:18:15 +01:00
parent 16a6114bd1
commit 1d2a07f535
No known key found for this signature in database
GPG key ID: 0EB088298288D958
2 changed files with 8 additions and 8 deletions

View file

@ -17,20 +17,20 @@ resource "kubernetes_deployment" "echo" {
name = "echo" name = "echo"
namespace = "echo" namespace = "echo"
labels = { labels = {
run = "echo" app = "echo"
} }
} }
spec { spec {
replicas = 5 replicas = 5
selector { selector {
match_labels = { match_labels = {
run = "echo" app = "echo"
} }
} }
template { template {
metadata { metadata {
labels = { labels = {
run = "echo" app = "echo"
} }
} }
spec { spec {
@ -38,10 +38,10 @@ resource "kubernetes_deployment" "echo" {
image = "mendhak/http-https-echo" image = "mendhak/http-https-echo"
name = "echo" name = "echo"
port { port {
container_port = 80 container_port = 8080
} }
port { port {
container_port = 443 container_port = 8443
} }
} }
} }
@ -54,18 +54,18 @@ resource "kubernetes_service" "echo" {
name = "echo" name = "echo"
namespace = "echo" namespace = "echo"
labels = { labels = {
"run" = "echo" "app" = "echo"
} }
} }
spec { spec {
selector = { selector = {
run = "echo" app = "echo"
} }
port { port {
name = "http" name = "http"
port = "80" port = "80"
target_port = "80" target_port = "8080"
} }
} }
} }

Binary file not shown.