Commit 2eb7825d by chenxx

change output node_name 4

1 parent 2735257f
...@@ -115,7 +115,6 @@ data "kubernetes_pod" "pods_info" { ...@@ -115,7 +115,6 @@ data "kubernetes_pod" "pods_info" {
depends_on = [module.deployment] depends_on = [module.deployment]
metadata { metadata {
name = local.name
namespace = local.namespace namespace = local.namespace
} }
} }
......
...@@ -15,5 +15,5 @@ output "ingress" { ...@@ -15,5 +15,5 @@ output "ingress" {
output "pod_in_node_name" { output "pod_in_node_name" {
description = "pod所在node的名字" description = "pod所在node的名字"
value = data.kubernetes_pod.pods_info.spec.*.node_name value =
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!