From a2b953a66e3d8fbc4a6476a89b529d21c419c053 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Va=C5=A1ek?= Date: Sat, 12 Jul 2025 01:32:26 +0200 Subject: [PATCH] IPv6-only hacks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Matej Vašek --- hack/allocate.sh | 60 ++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 53 insertions(+), 7 deletions(-) diff --git a/hack/allocate.sh b/hack/allocate.sh index c2dcae3ac..c271f5440 100755 --- a/hack/allocate.sh +++ b/hack/allocate.sh @@ -60,19 +60,22 @@ kubernetes() { cat < ipFamilyPolicy: PreferDualStack +8861a8863,8865 +> - "--stats-address=::" +> - "--envoy-service-http-address=::" +> - "--envoy-service-https-address=::" +9500a9505,9507 +> - "--stats-address=::" +> - "--envoy-service-http-address=::" +> - "--envoy-service-https-address=::" +EOF + $KUBECTL apply -f "${tmp_yaml}" + rm "${tmp_yaml}" + sleep 5 $KUBECTL wait pod --for=condition=Ready -l '!job-name' -n contour-external --timeout=10m @@ -205,9 +225,6 @@ networking() { --type merge \ --patch '{"data":{"ingress-class":"contour.ingress.networking.knative.dev"}}' - echo "Patching contour to prefer duals-tack" - kubectl patch -n contour-external svc/envoy --type merge --patch '{"spec":{"ipFamilyPolicy":"PreferDualStack"}}' - $KUBECTL wait pod --for=condition=Ready -l '!job-name' -n contour-external --timeout=10m $KUBECTL wait pod --for=condition=Ready -l '!job-name' -n knative-serving --timeout=10m echo "${green}✅ Ingress${reset}" @@ -336,6 +353,35 @@ dapr_runtime() { dapr_flags="--image-registry=ghcr.io/dapr --log-as-json" fi + # hack to patch dapr to work on IPv6 + (sleep 5; + $KUBECTL patch statefulset dapr-scheduler-server -n dapr-system --patch-file /dev/stdin <