diff --git a/openshift-tests-plugin/pkg/plugin/plugin.go b/openshift-tests-plugin/pkg/plugin/plugin.go index 81dbe26d..a1e07bf5 100644 --- a/openshift-tests-plugin/pkg/plugin/plugin.go +++ b/openshift-tests-plugin/pkg/plugin/plugin.go @@ -51,7 +51,7 @@ const ( // WaitThresholdLimit defines the limit to wait for done file. Default 4h. WaitThresholdLimit = 14400 - KubeApiServerInternal = "https://172.30.0.1:443" + KubeApiServerInternal = "https://kubernetes.default.svc:443" KubeApiServerSACertCA = "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt" KubeApiServerSAToken = "/var/run/secrets/kubernetes.io/serviceaccount/token" diff --git a/openshift-tests-plugin/plugin/entrypoint-tests.sh b/openshift-tests-plugin/plugin/entrypoint-tests.sh index 8fdf37db..6a214002 100755 --- a/openshift-tests-plugin/plugin/entrypoint-tests.sh +++ b/openshift-tests-plugin/plugin/entrypoint-tests.sh @@ -13,7 +13,7 @@ set -o errexit # shellcheck disable=SC2034 declare -gr KUBECONFIG=/tmp/shared/kubeconfig; -declare -gr KUBE_API_URL="https://172.30.0.1:443" +declare -gr KUBE_API_URL="https://kubernetes.default.svc:443" declare -gr SA_TOKEN_PATH="/var/run/secrets/kubernetes.io/serviceaccount/token" declare -gr SA_CA_PATH="/var/run/secrets/kubernetes.io/serviceaccount/ca.crt" declare -gr CTRL_DONE_PLUGIN="/tmp/sonobuoy/results/done"