Skip to content
Snippets Groups Projects
Commit 0956c0c5 authored by mminar's avatar mminar
Browse files

Merge branch 'hostnetpol' into 'main'

ditch cpu limits

See merge request !11
parents da07a13f 784ad4f2
No related branches found
No related tags found
1 merge request!11ditch cpu limits
Pipeline #271881 passed
......@@ -8,7 +8,8 @@ yamllint:
script:
- yamllint .
rules:
- if: >-
- &renovateGuard
if: >-
$CI_PIPELINE_SOURCE !~ /^(?:push|merge_request_event|schedule|pipeline)$/ &&
$RENOVATE == "true"
when: never
......@@ -26,10 +27,7 @@ markdownlint:
script:
- mdl --warnings .
rules:
- if: >-
$CI_PIPELINE_SOURCE !~ /^(?:push|merge_request_event|schedule|pipeline)$/ &&
$RENOVATE == "true"
when: never
- *renovateGuard
- changes:
paths:
- .gitlab/lint.yaml
......@@ -46,10 +44,7 @@ hadolint:
script:
- find -name 'Dockerfile*' -print0 | xargs -0 hadolint
rules:
- if: >-
$CI_PIPELINE_SOURCE !~ /^(?:push|merge_request_event|schedule|pipeline)$/ &&
$RENOVATE == "true"
when: never
- *renovateGuard
- changes:
paths:
- Dockerfile*
......@@ -62,20 +57,12 @@ iperf-kube-lint:
image: registry.gitlab.com/ethz-hpc/pipelines/kube-linter:latest@sha256:f0f8fbe21a03b5f9b6553917815771ed7ab63fcb42125c0057c57e46dd474641
stage: lint
script:
- set -eo pipefail
- cd charts/iperf
- >-
helm template iperf-server . |
awk -v o=/dev/stderr '/^(apiVersion:|---)/ { o="/dev/stdout" } { print >o }' |
tee /dev/stderr |
kube-linter lint --fail-if-no-objects-found --fail-on-invalid-resource -
- make -C charts/iperf lint
rules:
- if: >-
$CI_PIPELINE_SOURCE !~ /^(?:push|merge_request_event|schedule|pipeline)$/ &&
$RENOVATE == "true"
when: never
- *renovateGuard
- changes:
paths:
- .gitlab-ci.yaml
- .gitlab/lint.yaml
- charts/**/*.yaml
- .kube-linter.yaml
......@@ -3,3 +3,5 @@ checks:
exclude:
- latest-tag
- drop-net-raw-capability
- unset-cpu-requirements
- run-as-non-root
......@@ -42,7 +42,6 @@ spec:
protocol: TCP
resources:
limits:
cpu: 2
ephemeral-storage: 64Mi
memory: 512Mi
requests:
......
......@@ -24,4 +24,28 @@ spec:
app.kubernetes.io/part-of: iperf-server
policyTypes:
- Ingress
{{- if and (.Values.networkPolicy.hostNetwork | default false) (.Values.hostNetwork) }}
---
apiVersion: cilium.io/v2
kind: CiliumClusterwideNetworkPolicy
metadata:
name: iperf-hostns
spec:
description: |
Allow iperf pods on the host network to communicate
ingress:
- fromEntities:
- remote-node
- host
- health
toPorts:
- ports:
- port: "{{ .Values.server.port | default 5201 }}"
protocol: TCP
- port: "{{ .Values.server.port | default 5201 }}"
protocol: UDP
nodeSelector:
matchLabels:
node-role.kubernetes.io/compute: "true"
{{- end }}
{{- end }}
......@@ -20,10 +20,12 @@ server:
port: 5201
networkPolicy:
enabled: false
# deploy CiliumClusterWideNetworkPolicy
hostNetwork: false
ingress:
CIDRs: []
tolerations: []
# - key: hpc.ethz.ch/uses_http_proxy
# effect: NoSchedule
# operator: Exists
runAsRoot: false
runAsRoot: true
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment