Files
truecharts/charts/stable/traefik/templates/poddisruptionbudget.yaml
T
Kjeld Schouten-LebbingandGitHub 111680d41b Traefik rework (#546)
* first part

* port most relevant settings

* Don't include common or old crap

* Try moving persistence to common

* Initial work on Traefik SCALE UI

* some cleanup and consistency patches. Also:
Enable metrics, because that's just container-side metrics and doesn't require prometheus CRD's

* super basic portal

* don't use portal as a template

* whoops

* whoops 2.0
2021-06-10 14:49:42 +02:00

23 lines
824 B
YAML

{{- if .Values.podDisruptionBudget.enabled -}}
apiVersion: policy/v1beta1
kind: PodDisruptionBudget
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 }}
spec:
selector:
matchLabels:
app.kubernetes.io/name: {{ template "traefik.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- if .Values.podDisruptionBudget.minAvailable }}
minAvailable: {{ .Values.podDisruptionBudget.minAvailable | int }}
{{- end }}
{{- if .Values.podDisruptionBudget.maxUnavailable }}
maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable | int }}
{{- end }}
{{- end -}}