@@ -67,14 +67,19 @@ chown -R ${SUDO_USER:-$(whoami)} ${ARTIFACTS}
6767
6868# Determine the local IP SideroLink API will listen on
6969LOCAL_IP=$( ip -o route get to 8.8.8.8 | sed -n ' s/.*src \([0-9.]\+\).*/\1/p' )
70+ WIREGUARD_IP=$LOCAL_IP
71+
72+ if [[ " ${CI:- false} " == " true" ]]; then
73+ WIREGUARD_IP=172.20.0.1
74+ fi
7075
7176# Prepare schematic with kernel args
7277KERNEL_ARGS_SCHEMATIC=$(
7378 cat << EOF
7479customization:
7580 extraKernelArgs:
76- - siderolink.api=grpc://$LOCAL_IP :8090?jointoken=${JOIN_TOKEN}
77- - talos.events.sink=[fdae:41e4:649b:9303::1]:8090
81+ - siderolink.api=grpc://${WIREGUARD_IP} :8090?jointoken=${JOIN_TOKEN}
82+ - talos.events.sink=[fdae:41e4:649b:9303::1]:8091
7883 - talos.logging.kernel=tcp://[fdae:41e4:649b:9303::1]:8092
7984 systemExtensions:
8085 officialExtensions:
@@ -181,8 +186,9 @@ services:
181186 endpoint: ${LOCAL_IP} :50180
182187 advertisedEndpoint: ${LOCAL_IP} :50180
183188 joinTokensMode: strict
189+ eventSinkPort: 8091
184190 machineAPI:
185- endpoint: ${LOCAL_IP} :8090
191+ endpoint: 0.0.0.0 :8090
186192 advertisedURL: grpc://${LOCAL_IP} :8090
187193 workloadProxy:
188194 enabled: true
@@ -281,7 +287,7 @@ function prepare_partial_config() {
281287 cat << EOF
282288apiVersion: v1alpha1
283289kind: SideroLinkConfig
284- apiUrl: grpc://$LOCAL_IP :8090?jointoken=${JOIN_TOKEN}
290+ apiUrl: grpc://${WIREGUARD_IP} :8090?jointoken=${JOIN_TOKEN}
285291---
286292apiVersion: v1alpha1
287293kind: EventSinkConfig
@@ -299,15 +305,15 @@ EOF
299305 echo " ${partial_config} " > " ${partial_config_dir} /config.yaml"
300306
301307 # Start a simple HTTP server to serve the partial config
302- python3 -m http.server $port --bind " $LOCAL_IP " --directory " $partial_config_dir " > /dev/null 2>&1 &
308+ python3 -m http.server $port --bind " 0.0.0.0 " --directory " $partial_config_dir " > /dev/null 2>&1 &
303309 PARTIAL_CONFIG_SERVER_PID=$! # capture the PID to kill it in cleanup
304310
305311 local schematic
306312 schematic=$(
307313 cat << EOF
308314customization:
309315 extraKernelArgs:
310- - talos.config=http://$LOCAL_IP :$port /config.yaml
316+ - talos.config=http://${WIREGUARD_IP} :$port /config.yaml
311317 systemExtensions:
312318 officialExtensions:
313319 - siderolabs/hello-world-service
@@ -552,6 +558,7 @@ if [ "${INTEGRATION_RUN_E2E_TEST:-true}" == "true" ]; then
552558 nice -n 10 ${ARTIFACTS} /omni-linux-amd64 --config-path ${TEST_OUTPUTS_DIR} /e2e-config.yaml \
553559 --siderolink-wireguard-advertised-addr $LOCAL_IP :50180 \
554560 --siderolink-api-advertised-url " grpc://$LOCAL_IP :8090" \
561+ --event-sink-port 8091 \
555562 --auth-auth0-enabled true \
556563 --auth-auth0-client-id " ${AUTH0_CLIENT_ID} " \
557564 --auth-auth0-domain " ${AUTH0_DOMAIN} " \
0 commit comments