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 }}
|
{{- 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:
|
||||||
|
|
|
@ -30,6 +30,7 @@ commons:
|
||||||
labels: {}
|
labels: {}
|
||||||
|
|
||||||
controller: "traefik"
|
controller: "traefik"
|
||||||
|
hostNetwork: true
|
||||||
external: true
|
external: true
|
||||||
traefik:
|
traefik:
|
||||||
ports: {}
|
ports: {}
|
||||||
|
|
Loading…
Add table
Reference in a new issue