42 lines
1.4 KiB
YAML
42 lines
1.4 KiB
YAML
|
{{- if and .Values.deployment.enabled (eq .Values.deployment.kind "DaemonSet") -}}
|
||
|
{{- with .Values.additionalArguments -}}
|
||
|
{{- range . -}}
|
||
|
{{- if contains ".acme." . -}}
|
||
|
{{- fail (printf "ACME functionality is not supported when running Traefik as a DaemonSet") -}}
|
||
|
{{- end -}}
|
||
|
{{- end -}}
|
||
|
{{- end -}}
|
||
|
{{- if eq (default .Chart.AppVersion .Values.image.tag) "latest" }}
|
||
|
{{- fail "\n\n ERROR: latest tag should not be used" }}
|
||
|
{{- end }}
|
||
|
|
||
|
---
|
||
|
apiVersion: apps/v1
|
||
|
kind: DaemonSet
|
||
|
metadata:
|
||
|
name: {{ template "traefik.fullname" . }}
|
||
|
labels:
|
||
|
app.kubernetes.io/name: {{ template "traefik.name" . }}
|
||
|
helm.sh/chart: {{ template "traefik.chart" . }}
|
||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||
|
{{- with .Values.deployment.labels }}
|
||
|
{{- toYaml . | nindent 4 }}
|
||
|
{{- end }}
|
||
|
annotations:
|
||
|
{{- with .Values.deployment.annotations }}
|
||
|
{{- toYaml . | nindent 4 }}
|
||
|
{{- end }}
|
||
|
spec:
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app.kubernetes.io/name: {{ template "traefik.name" . }}
|
||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||
|
updateStrategy:
|
||
|
type: RollingUpdate
|
||
|
rollingUpdate:
|
||
|
maxUnavailable: {{ .Values.rollingUpdate.maxUnavailable }}
|
||
|
minReadySeconds: {{ .Values.deployment.minReadySeconds }}
|
||
|
template: {{ template "traefik.podTemplate" . }}
|
||
|
{{- end -}}
|