Commit 4910d748 by chenxx

change output node_name 5

1 parent 2eb7825d
...@@ -116,6 +116,7 @@ data "kubernetes_pod" "pods_info" { ...@@ -116,6 +116,7 @@ data "kubernetes_pod" "pods_info" {
metadata { metadata {
namespace = local.namespace namespace = local.namespace
name = module.deployment
} }
} }
......
...@@ -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 = value = data.kubernetes_pod.pods_info.spec.*.node_name
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!