From 7ced99ab0e2ff1a16290d4c0344c0d30d8a4b940 Mon Sep 17 00:00:00 2001 From: Antoine Toulme Date: Mon, 27 Jan 2025 14:54:53 -0800 Subject: [PATCH] [chore] test on ipv6 --- .../workflows/configs/kind-config-ipv6.yaml | 40 +++++++++++++++++++ .github/workflows/functional_test_v2.yaml | 5 ++- 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/configs/kind-config-ipv6.yaml diff --git a/.github/workflows/configs/kind-config-ipv6.yaml b/.github/workflows/configs/kind-config-ipv6.yaml new file mode 100644 index 000000000..c00730f03 --- /dev/null +++ b/.github/workflows/configs/kind-config-ipv6.yaml @@ -0,0 +1,40 @@ +kind: Cluster +apiVersion: kind.x-k8s.io/v1alpha4 +networking: + ipFamily: ipv6 +nodes: + - role: control-plane + kubeadmConfigPatches: + - | + kind: InitConfiguration + nodeRegistration: + kubeletExtraArgs: + node-labels: "ingress-ready=true" + - | + kind: KubeletConfiguration + serverTLSBootstrap: true + - | + kind: ClusterConfiguration + scheduler: + extraArgs: + bind-address: "[::]" + apiServer: + extraArgs: + bind-address: "[::]" + controllerManager: + extraArgs: + bind-address: "[::]" + etcd: + local: + extraArgs: + listen-metrics-urls: "http://[::]:2381" + - | + kind: KubeProxyConfiguration + metricsBindAddress: "[::]:10249" + extraPortMappings: + - containerPort: 80 + hostPort: 80 + protocol: TCP + - containerPort: 443 + hostPort: 443 + protocol: TCP diff --git a/.github/workflows/functional_test_v2.yaml b/.github/workflows/functional_test_v2.yaml index 924a921f8..e93cbc805 100644 --- a/.github/workflows/functional_test_v2.yaml +++ b/.github/workflows/functional_test_v2.yaml @@ -44,6 +44,9 @@ jobs: - functional - histogram - configuration_switching + kind-setup: + - kind-config.yaml + - kind-config-ipv6.yaml runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -57,7 +60,7 @@ jobs: node_image: kindest/node:${{ matrix.k8s-version }} kubectl_version: ${{ matrix.k8s-version }} cluster_name: kind - config: ./.github/workflows/configs/kind-config.yaml + config: ./.github/workflows/configs/${{ matrix.kind-setup }} - name: Fix kubelet TLS server certificates run: | kubectl get csr -o=jsonpath='{range.items[?(@.spec.signerName=="kubernetes.io/kubelet-serving")]}{.metadata.name}{" "}{end}' | xargs kubectl certificate approve