Important notes: - Uses 80 and 443 for primary ingress, but warns about such when installing - Currently entrypoints are hardcoded, PR's are welcome to change this. (thanks to co-author for fixing the icon url) Co-authored-by: Stavros Kois <stavros-k@users.noreply.github.com> Signed-off-by: Kjeld Schouten-Lebbing <kjeld@schouten-lebbing.nl>
42 lines
1.3 KiB
YAML
42 lines
1.3 KiB
YAML
{{- if and .Values.deployment.enabled (eq .Values.deployment.kind "Deployment") -}}
|
|
{{- if gt (int .Values.deployment.replicas) 1 -}}
|
|
{{- with .Values.additionalArguments -}}
|
|
{{- range . -}}
|
|
{{- if contains ".acme." . -}}
|
|
{{- fail (printf "You can not enabled acme if you set more than one traefik replica") -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
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 }}
|
|
annotations:
|
|
{{- with .Values.deployment.annotations }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
{{- if not .Values.autoscaling.enabled }}
|
|
replicas: {{ default 1 .Values.deployment.replicas }}
|
|
{{- end }}
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: {{ template "traefik.name" . }}
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
strategy:
|
|
type: RollingUpdate
|
|
rollingUpdate:
|
|
{{- with .Values.rollingUpdate }}
|
|
{{- toYaml . | nindent 6 }}
|
|
{{- end }}
|
|
template: {{ template "traefik.podTemplate" . }}
|
|
{{- end -}}
|