diff --git a/test/component_test.yaml b/test/component_test.yaml index 133da1f7fd..0219ae5007 100644 --- a/test/component_test.yaml +++ b/test/component_test.yaml @@ -95,7 +95,20 @@ spec: - name: strict-image-name valueFrom: path: /outputs/strict-image-name/file - container: + # TODO work around networking issues,remove initContainers once networking issues gets resolved + initContainers: + - name: workaround + image: k8s.gcr.io/build-image/debian-iptables-amd64:buster-v1.6.7 + command: + - sh + - -c + - "iptables -t mangle -A POSTROUTING -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu" + securityContext: + capabilities: + add: + - NET_ADMIN + privileged: true + container: image: "{{workflow.parameters.image-builder-image}}" imagePullPolicy: 'Always' command: diff --git a/test/e2e_test_gke_v2.yaml b/test/e2e_test_gke_v2.yaml index 553586ed01..243739dd99 100644 --- a/test/e2e_test_gke_v2.yaml +++ b/test/e2e_test_gke_v2.yaml @@ -195,6 +195,19 @@ spec: - name: strict-image-name valueFrom: path: /outputs/strict-image-name/file + # TODO work around networking issues,remove initContainers once networking issues gets resolved + initContainers: + - name: workaround + image: k8s.gcr.io/build-image/debian-iptables-amd64:buster-v1.6.7 + command: + - sh + - -c + - "iptables -t mangle -A POSTROUTING -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu" + securityContext: + capabilities: + add: + - NET_ADMIN + privileged: true container: image: "{{workflow.parameters.image-builder-image}}" imagePullPolicy: 'Always' diff --git a/test/sample_test.yaml b/test/sample_test.yaml index a52c222790..cd04e811c9 100644 --- a/test/sample_test.yaml +++ b/test/sample_test.yaml @@ -127,6 +127,19 @@ spec: - name: strict-image-name valueFrom: path: /outputs/strict-image-name/file + # TODO work around networking issues,remove initContainers once networking issues gets resolved + initContainers: + - name: workaround + image: k8s.gcr.io/build-image/debian-iptables-amd64:buster-v1.6.7 + command: + - sh + - -c + - "iptables -t mangle -A POSTROUTING -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu" + securityContext: + capabilities: + add: + - NET_ADMIN + privileged: true container: image: "{{workflow.parameters.image-builder-image}}" imagePullPolicy: 'Always'