Skip to content

Commit

Permalink
add kind nftables jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
aojea committed Apr 20, 2024
1 parent 10004e0 commit c2eb162
Show file tree
Hide file tree
Showing 2 changed files with 166 additions and 5 deletions.
167 changes: 164 additions & 3 deletions config/jobs/kubernetes/sig-network/sig-network-kind.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ presubmits:
testgrid-tab-name: pr-sig-network-kind, dual
description: Runs tests against a Dual Stack Kubernetes in Docker cluster
testgrid-alert-email: [email protected]
- name: pull-kubernetes-e2e-kind-ipvs-dual-canary
- name: pull-kubernetes-e2e-kind-nftables-dual-canary
cluster: k8s-infra-prow-build
optional: true
always_run: false
Expand Down Expand Up @@ -84,7 +84,7 @@ presubmits:
- name: "IP_FAMILY"
value: "dual"
- name: KUBE_PROXY_MODE
value: "ipvs"
value: "nftables"
# we need privileged mode in order to do docker in docker
securityContext:
privileged: true
Expand All @@ -97,7 +97,7 @@ presubmits:
memory: 9Gi
annotations:
testgrid-dashboards: sig-network-kind
testgrid-tab-name: pr-sig-network-kind, ipvs, dual
testgrid-tab-name: pr-sig-network-kind, nftables, dual
description: Runs tests against a Dual Stack Kubernetes in Docker cluster
testgrid-alert-email: [email protected]
- name: pull-kubernetes-e2e-kind-cloud-provider-loadbalancer
Expand Down Expand Up @@ -579,6 +579,167 @@ periodics:
description: Runs network tests using KIND against latest kubernetes master with a DualStack kubernetes-in-docker cluster
testgrid-alert-email: [email protected], [email protected]
testgrid-num-columns-recent: '3'
- interval: 24h
name: ci-kubernetes-kind-network-nftables
cluster: k8s-infra-prow-build
labels:
preset-service-account: "true"
preset-dind-enabled: "true"
preset-kind-volume-mounts: "true"
decorate: true
decoration_config:
timeout: 200m
extra_refs:
- org: kubernetes
repo: kubernetes
base_ref: master
path_alias: k8s.io/kubernetes
spec:
containers:
- image: gcr.io/k8s-staging-test-infra/krte:v20240405-14b8bc2f76-master
command:
- wrapper.sh
- bash
- -c
- curl -sSL https://kind.sigs.k8s.io/dl/latest/linux-amd64.tgz | tar xvfz - -C "${PATH%%:*}/" && e2e-k8s.sh
env:
# don't retry network tests
- name: GINKGO_TOLERATE_FLAKES
value: "n"
- name: KUBE_PROXY_MODE
value: "nftables"
- name: FOCUS
value: \[sig-network\]|\[Conformance\]
- name: SKIP
value: \[Feature:(Networking-IPv6|Example|Federation|PerformanceDNS|ServiceCIDRs)\]|LB.health.check|LoadBalancer|load.balancer|GCE|NetworkPolicy|DualStack
# we need privileged mode in order to do docker in docker
securityContext:
privileged: true
resources:
limits:
cpu: 4
memory: 9Gi
requests:
cpu: 4
memory: 9Gi
annotations:
testgrid-dashboards: sig-network-kind, sig-testing-kind
testgrid-tab-name: sig-network-kind, nftables, master
description: Runs network tests using KIND against latest kubernetes master with a kubernetes-in-docker cluster using kube-proxy nftables
testgrid-alert-email: [email protected], [email protected]
testgrid-num-columns-recent: '3'
- interval: 24h
name: ci-kubernetes-kind-network-nftables-ipv6
cluster: k8s-infra-prow-build
labels:
preset-service-account: "true"
preset-dind-enabled: "true"
preset-kind-volume-mounts: "true"
decorate: true
decoration_config:
timeout: 200m
extra_refs:
- org: kubernetes
repo: kubernetes
base_ref: master
path_alias: k8s.io/kubernetes
spec:
containers:
- image: gcr.io/k8s-staging-test-infra/krte:v20240405-14b8bc2f76-master
command:
- wrapper.sh
- bash
- -c
- curl -sSL https://kind.sigs.k8s.io/dl/latest/linux-amd64.tgz | tar xvfz - -C "${PATH%%:*}/" && e2e-k8s.sh
env:
# enable IPV6 in bootstrap image
- name: "DOCKER_IN_DOCKER_IPV6_ENABLED"
value: "true"
# tell kind CI script to use ipv6
- name: "IP_FAMILY"
value: "ipv6"
# don't retry network tests
- name: GINKGO_TOLERATE_FLAKES
value: "n"
- name: KUBE_PROXY_MODE
value: "nftables"
- name: FOCUS
value: \[sig-network\]|\[Conformance\]
- name: SKIP
value: \[Feature:(Networking-IPv4|Example|Federation|PerformanceDNS|ServiceCIDRs)\]|Internet.connection|upstream.nameserver|LB.health.check|LoadBalancer|load.balancer|GCE|NetworkPolicy|DualStack
# we need privileged mode in order to do docker in docker
securityContext:
privileged: true
resources:
limits:
cpu: 4
memory: 9Gi
requests:
cpu: 4
memory: 9Gi
annotations:
testgrid-dashboards: sig-network-kind, sig-testing-kind
testgrid-tab-name: sig-network-kind, nftables, IPv6, master
description: Runs network tests using KIND against latest kubernetes master with an IPv6 kubernetes-in-docker cluster using kube-proxy nftables
testgrid-alert-email: [email protected], [email protected]
testgrid-num-columns-recent: '3'
- interval: 24h
name: ci-kubernetes-kind-network-nftables-dual
cluster: k8s-infra-prow-build
labels:
preset-service-account: "true"
preset-dind-enabled: "true"
preset-kind-volume-mounts: "true"
decorate: true
decoration_config:
timeout: 200m
extra_refs:
- org: kubernetes
repo: kubernetes
base_ref: master
path_alias: k8s.io/kubernetes
spec:
containers:
- image: gcr.io/k8s-staging-test-infra/krte:v20240405-14b8bc2f76-master
command:
- wrapper.sh
- bash
- -c
- curl -sSL https://kind.sigs.k8s.io/dl/latest/linux-amd64.tgz | tar xvfz - -C "${PATH%%:*}/" && e2e-k8s.sh
env:
- name: BUILD_TYPE
value: docker
# enable IPV6 in bootstrap image
- name: "DOCKER_IN_DOCKER_IPV6_ENABLED"
value: "true"
# tell kind CI script to use ipv6
- name: "IP_FAMILY"
value: "dual"
# don't retry network tests
- name: GINKGO_TOLERATE_FLAKES
value: "n"
- name: KUBE_PROXY_MODE
value: "nftables"
- name: FOCUS
value: \[sig-network\]|\[Conformance\]
- name: SKIP
value: \[Feature:(Networking-IPv4|PodHostIPs|Example|Federation|PerformanceDNS|ServiceCIDRs)\]|Internet.connection|upstream.nameserver|LB.health.check|LoadBalancer|load.balancer|GCE|NetworkPolicy
# we need privileged mode in order to do docker in docker
securityContext:
privileged: true
resources:
limits:
cpu: 4
memory: 9Gi
requests:
cpu: 4
memory: 9Gi
annotations:
testgrid-dashboards: sig-network-kind, sig-testing-kind
testgrid-tab-name: sig-network-kind, nftables, dual, master
description: Runs network tests using KIND against latest kubernetes master with a DualStack kubernetes-in-docker cluster using kube-proxy nftables
testgrid-alert-email: [email protected], [email protected]
testgrid-num-columns-recent: '3'
# network test against kubernetes master branch with `kind`, skipping
# serial tests so it runs in ~20m
- interval: 6h
Expand Down
4 changes: 2 additions & 2 deletions config/testgrids/kubernetes/presubmits/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ dashboards:
- name: pull-kubernetes-e2e-kind-dual-canary
test_group_name: pull-kubernetes-e2e-kind-dual-canary
base_options: width=10
- name: pull-kubernetes-e2e-kind-ipvs-dual-canary
test_group_name: pull-kubernetes-e2e-kind-ipvs-dual-canary
- name: pull-kubernetes-e2e-kind-nftables-dual-canary
test_group_name: pull-kubernetes-e2e-kind-nftables-dual-canary
base_options: width=10
- name: pull-kubernetes-e2e-kind-alpha-features
test_group_name: pull-kubernetes-e2e-kind-alpha-features
Expand Down

0 comments on commit c2eb162

Please sign in to comment.