diff --git a/stable/traefik/Chart.yaml b/stable/traefik/Chart.yaml index c66984021d..9fe84e9829 100755 --- a/stable/traefik/Chart.yaml +++ b/stable/traefik/Chart.yaml @@ -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: diff --git a/stable/traefik/README.md b/stable/traefik/README.md index 04b480aac5..9b167863fc 100644 --- a/stable/traefik/README.md +++ b/stable/traefik/README.md @@ -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` | diff --git a/stable/traefik/templates/poddisruptionbudget.yaml b/stable/traefik/templates/poddisruptionbudget.yaml new file mode 100644 index 0000000000..b27e9d4ec9 --- /dev/null +++ b/stable/traefik/templates/poddisruptionbudget.yaml @@ -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 -}} diff --git a/stable/traefik/values.yaml b/stable/traefik/values.yaml index f9b1359f84..b2d00cf4ec 100644 --- a/stable/traefik/values.yaml +++ b/stable/traefik/values.yaml @@ -8,6 +8,11 @@ loadBalancerIP: whiteListSourceRange: [] externalTrafficPolicy: Cluster replicas: 1 + +podDisruptionBudget: {} + # maxUnavailable: 1 + # minAvailable: 2 + cpuRequest: 100m memoryRequest: 20Mi cpuLimit: 100m