Commit 548bdc72 by chenxx

update

1 parent 5b731aa3
Showing 1 changed file with 3 additions and 3 deletions
......@@ -33,11 +33,11 @@ resource "kubernetes_deployment" "CUS" {
spec {
replicas = 1
selector {
match_labels = {for label in var.labels: label => label}
match_labels = {for label in var.labels: split(",",label)[0] => split(",",label)[1]}
}
template {
metadata {
labels = {for label in var.labels: label => label}
labels = {for label in var.labels: split(",",label)[0] => split(",",label)[1]}
}
spec {
container {
......@@ -60,7 +60,7 @@ resource "kubernetes_service" "CUS" {
namespace = var.namespace
}
spec {
selector = {for label in var.labels: label => label}
selector = {for label in var.labels: split(",",label)[0] => split(",",label)[1]}
type = "NodePort"
dynamic "port" {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!