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

View file

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