fix(infra-ingress): support hostNetwork
This commit is contained in:
parent
6ccca3dd2f
commit
a4842104c7
2 changed files with 20 additions and 0 deletions
|
@ -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:
|
||||
|
|
|
@ -30,6 +30,7 @@ commons:
|
|||
labels: {}
|
||||
|
||||
controller: "traefik"
|
||||
hostNetwork: true
|
||||
external: true
|
||||
traefik:
|
||||
ports: {}
|
||||
|
|
Loading…
Add table
Reference in a new issue