mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
traefik: added pod disruption budget (#4367)
This commit is contained in:
committed by
k8s-ci-robot
parent
be1dfddc00
commit
8f352443a4
@@ -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:
|
||||
|
||||
@@ -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 -}}
|
||||
@@ -8,6 +8,11 @@ loadBalancerIP:
|
||||
whiteListSourceRange: []
|
||||
externalTrafficPolicy: Cluster
|
||||
replicas: 1
|
||||
|
||||
podDisruptionBudget: {}
|
||||
# maxUnavailable: 1
|
||||
# minAvailable: 2
|
||||
|
||||
cpuRequest: 100m
|
||||
memoryRequest: 20Mi
|
||||
cpuLimit: 100m
|
||||
|
||||
Reference in New Issue
Block a user