job "test-consul-kv" { datacenters = ["dc1"] type = "batch" group "test" { count = 1 task "consul-kv-test" { driver = "exec" config { command = "/bin/sh" args = ["-c", "echo 'Testing Consul KV access...'"] } # 使用模板从 Consul KV 读取配置 template { data = <