traefik: added pod disruption budget (#4367)

This commit is contained in:
Carlos Alexandro Becker
2018-04-18 11:27:59 -07:00
committed by k8s-ci-robot
parent be1dfddc00
commit 8f352443a4
4 changed files with 24 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: traefik
version: 1.28.1
version: 1.29.0
appVersion: 1.5.4
description: A Traefik based Kubernetes ingress controller with Let's Encrypt support
keywords:
+1
View File
@@ -94,6 +94,7 @@ The following table lists the configurable parameters of the Traefik chart and t
| `whiteListSourceRange` | Enable IP whitelisting at the entrypoint level. | `false` |
| `externalTrafficPolicy` | Set the externalTrafficPolicy in the Service to either Cluster or Local | `Cluster` |
| `replicas` | The number of replicas to run; __NOTE:__ Full Traefik clustering with leader election is not yet supported, which can affect any configured Let's Encrypt setup; see Clustering section | `1` |
| `podDisruptionBudget` | Pod disruption budget | `{}` |
| `cpuRequest` | Initial share of CPU requested per Traefik pod | `100m` |
| `memoryRequest` | Initial share of memory requested per Traefik pod | `20Mi` |
| `cpuLimit` | CPU limit per Traefik pod | `200m` |
@@ -0,0 +1,17 @@
{{- if .Values.podDisruptionBudget -}}
apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
name: {{ template "traefik.fullname" . }}
labels:
app: {{ template "traefik.name" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
spec:
selector:
matchLabels:
app: {{ template "traefik.name" . }}
release: {{ .Release.Name }}
{{ toYaml .Values.podDisruptionBudget | indent 2 }}
{{- end -}}
+5
View File
@@ -8,6 +8,11 @@ loadBalancerIP:
whiteListSourceRange: []
externalTrafficPolicy: Cluster
replicas: 1
podDisruptionBudget: {}
# maxUnavailable: 1
# minAvailable: 2
cpuRequest: 100m
memoryRequest: 20Mi
cpuLimit: 100m