fix: Add workaround init container to fix test infra (#6618)

* debug to see e2e test

* debug

* updated gcloud version

* added networking issue workaround
This commit is contained in:
capri-xiyue 2021-09-28 13:43:19 -07:00 committed by GitHub
parent 4e89973504
commit f87057486a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 40 additions and 1 deletions

View File

@ -95,6 +95,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'

View File

@ -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'

View File

@ -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'