Ver código fonte

show env var

herlanS_ 3 anos atrás
pai
commit
a79beb80f0

+ 4 - 2
src/main/kotlin/co/id/datacomsolusindo/ipphonebridge/IpPhoneBridgeApplication.kt

@@ -56,8 +56,10 @@ fun main(args: Array<String>) {
     sApp.setDefaultProperties(properties)
     sApp.run(*args)
     LogManager.getLogger("co.id.datacomsolusindo.ipphonebridge.IpPhoneBridgeApplication").info("Bridge Start")
-    val hostName = System.getenv("HOSTNAME")
-    println("hostname $hostName")
+    println("hostname ${System.getenv("HOSTNAME")}")
+    println("token ${System.getenv("KUBE_TOKEN")}")
+    println("service_host ${System.getenv("KUBERNETES_SERVICE_HOST")}")
+    println("port ${System.getenv("KUBERNETES_PORT_443_TCP_PORT")}")
 }
 
 class Client(