diff --git a/.ci/jenkins/scripts/kind.groovy b/.ci/jenkins/scripts/kind.groovy index a255b2b1f..dd780527f 100644 --- a/.ci/jenkins/scripts/kind.groovy +++ b/.ci/jenkins/scripts/kind.groovy @@ -83,8 +83,8 @@ void connectRegistryContainerToClusterNetwork() { void addRegistryConfigToTheClusterNodes() { println 'Add registry config to cluster nodes' def addRegistryConfigStatus = sh(returnStatus: true, script: """ - export REGISTRY_DIR="/etc/containerd/certs.d/172.18.0.3:5000" export IP_ADDRESS=$(docker inspect --format='{{(index (index .NetworkSettings.Networks "kind") ).IPAddress}}' ${kindRegistryName}) + export REGISTRY_DIR="/etc/containerd/certs.d/${IP_ADDRESS}:5000" for node in $(kind get nodes); do docker exec "${node}" mkdir -p "${REGISTRY_DIR}"