From b41e45d0610c0913274114bad1b3a223282c5480 Mon Sep 17 00:00:00 2001 From: QxBytes Date: Wed, 22 Jan 2025 15:20:48 -0800 Subject: [PATCH 1/2] increase datapath test goldpinger replicas from 4 to 8 --- test/integration/manifests/datapath/linux-deployment-ipv6.yaml | 2 +- test/integration/manifests/datapath/linux-deployment.yaml | 2 +- test/integration/manifests/datapath/windows-deployment.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/integration/manifests/datapath/linux-deployment-ipv6.yaml b/test/integration/manifests/datapath/linux-deployment-ipv6.yaml index d7550f6069..497c0372ad 100644 --- a/test/integration/manifests/datapath/linux-deployment-ipv6.yaml +++ b/test/integration/manifests/datapath/linux-deployment-ipv6.yaml @@ -4,7 +4,7 @@ metadata: name: goldpinger-deploy namespace: linux-datapath-test spec: - replicas: 4 + replicas: 8 selector: matchLabels: app: goldpinger diff --git a/test/integration/manifests/datapath/linux-deployment.yaml b/test/integration/manifests/datapath/linux-deployment.yaml index 7963fbb29e..a593a5baab 100644 --- a/test/integration/manifests/datapath/linux-deployment.yaml +++ b/test/integration/manifests/datapath/linux-deployment.yaml @@ -4,7 +4,7 @@ metadata: name: goldpinger-deploy namespace: linux-datapath-test spec: - replicas: 4 + replicas: 8 selector: matchLabels: app: goldpinger diff --git a/test/integration/manifests/datapath/windows-deployment.yaml b/test/integration/manifests/datapath/windows-deployment.yaml index e4a5bb36bf..9b4d7931a2 100644 --- a/test/integration/manifests/datapath/windows-deployment.yaml +++ b/test/integration/manifests/datapath/windows-deployment.yaml @@ -4,7 +4,7 @@ metadata: name: windows-pod namespace: datapath-win spec: - replicas: 4 + replicas: 8 selector: matchLabels: app: datapod From eacd12521b3680f78d1555ee6458804f946023c5 Mon Sep 17 00:00:00 2001 From: QxBytes Date: Wed, 22 Jan 2025 23:11:12 -0800 Subject: [PATCH 2/2] try topology constraints to balance --- .../manifests/datapath/linux-deployment-ipv6.yaml | 7 +++++++ test/integration/manifests/datapath/linux-deployment.yaml | 7 +++++++ .../integration/manifests/datapath/windows-deployment.yaml | 7 +++++++ 3 files changed, 21 insertions(+) diff --git a/test/integration/manifests/datapath/linux-deployment-ipv6.yaml b/test/integration/manifests/datapath/linux-deployment-ipv6.yaml index 497c0372ad..68dbe4063d 100644 --- a/test/integration/manifests/datapath/linux-deployment-ipv6.yaml +++ b/test/integration/manifests/datapath/linux-deployment-ipv6.yaml @@ -86,3 +86,10 @@ spec: periodSeconds: 5 nodeSelector: kubernetes.io/os: linux + topologySpreadConstraints: + - maxSkew: 1 + topologyKey: kubernetes.io/hostname + whenUnsatisfiable: ScheduleAnyway + labelSelector: + matchLabels: + app: "goldpinger" diff --git a/test/integration/manifests/datapath/linux-deployment.yaml b/test/integration/manifests/datapath/linux-deployment.yaml index a593a5baab..73e75fd077 100644 --- a/test/integration/manifests/datapath/linux-deployment.yaml +++ b/test/integration/manifests/datapath/linux-deployment.yaml @@ -84,3 +84,10 @@ spec: periodSeconds: 5 nodeSelector: kubernetes.io/os: linux + topologySpreadConstraints: + - maxSkew: 1 + topologyKey: kubernetes.io/hostname + whenUnsatisfiable: ScheduleAnyway + labelSelector: + matchLabels: + app: "goldpinger" diff --git a/test/integration/manifests/datapath/windows-deployment.yaml b/test/integration/manifests/datapath/windows-deployment.yaml index 9b4d7931a2..c17874d066 100644 --- a/test/integration/manifests/datapath/windows-deployment.yaml +++ b/test/integration/manifests/datapath/windows-deployment.yaml @@ -20,3 +20,10 @@ spec: args: ["sleep", "5000"] nodeSelector: kubernetes.io/os: windows + topologySpreadConstraints: + - maxSkew: 1 + topologyKey: kubernetes.io/hostname + whenUnsatisfiable: ScheduleAnyway + labelSelector: + matchLabels: + app: "datapod"