fix(infra-ingress): support hostNetwork

This commit is contained in:
WrenIX 2024-06-20 11:19:15 +02:00
parent 6ccca3dd2f
commit a4842104c7
Signed by: wrenix
GPG key ID: 7AFDB012974B1BB5
2 changed files with 20 additions and 0 deletions

View file

@ -21,9 +21,13 @@ spec:
{{- toYaml .Values.commons.helm.release.driftDetection | nindent 4 }}
interval: 10m
values:
globalArguments:
- "--global.checknewversion=false"
- "--global.sendanonymoususage=false"
deployment:
enabled: {{ toYaml (not .Values.external) }}
kind: DaemonSet
hostNetwork: {{ .Values.hostNetwork }}
updateStrategy:
rollingUpdate:
maxUnavailable: 1
@ -54,17 +58,32 @@ spec:
priorityClassName: "system-cluster-critical"
ports:
metrics:
port: 9111
web:
hostPort: 80
{{- if .Values.hostNetwork }}
port: 80
{{- end }}
asDefault: true
websecure:
hostPort: 443
{{- if .Values.hostNetwork }}
port: 443
{{- end }}
asDefault: true
http3:
enabled: true
{{- with .Values.traefik.ports }}
{{- toYaml . | nindent 6 }}
{{- end }}
{{- if .Values.hostNetwork }}
podSecurityContext: null
securityContext:
capabilities:
add:
- "NET_BIND_SERVICE"
{{- end }}
providers:
kubernetesIngress:

View file

@ -30,6 +30,7 @@ commons:
labels: {}
controller: "traefik"
hostNetwork: true
external: true
traefik:
ports: {}