From 09c9f554dd7e6455eb3c196307298ed196a6583a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20Andr=C3=A9n?= Date: Mon, 22 Jan 2024 14:09:40 +0100 Subject: [PATCH] fix: Default to kubernetes pod IP instead of deprecated pod DNS names (#1244) * fix: Migrate to kubernetes svc DNS names from the deprecated pod DNS names Naive search replace to see what breaks in CI * Revert "fix: Migrate to kubernetes svc DNS names from the deprecated pod DNS names" This reverts commit 94c8c153e7b00e5980170d88bb4d5b9ca45bb34c. * fix: Switch to use IPs by default instead of deprecated pod dns names --- discovery-kubernetes-api/src/main/resources/reference.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/discovery-kubernetes-api/src/main/resources/reference.conf b/discovery-kubernetes-api/src/main/resources/reference.conf index a4a8a7e2c..bb1c1ec53 100644 --- a/discovery-kubernetes-api/src/main/resources/reference.conf +++ b/discovery-kubernetes-api/src/main/resources/reference.conf @@ -34,7 +34,9 @@ akka.discovery { pod-label-selector = "app=%s" # Enables the usage of the raw IP instead of the composed value for the resolved target host - use-raw-ip = false + # Note that when using names, the deprecated DNS form ---..pod. is used + # and that may not work on newer Kubernetes versions. + use-raw-ip = true # When set, validate the container is not in 'waiting' state container-name = ""