This repository has been archived by the owner on Feb 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[stable/kong] Added PodDisruptionBudget for Kong and its ingress (#16293
) * added PodDisruptionBudget on Kong and its ingress Signed-off-by: Felippe Mendonça <[email protected]> * changed default value podDisruption feature to false - update README - included ci test to podDisruptionBudget Signed-off-by: Felippe Mendonça <[email protected]> * version bumped Signed-off-by: Felippe Mendonça <[email protected]>
- Loading branch information
1 parent
00d32f7
commit 7adb8ee
Showing
6 changed files
with
119 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{{- if and .Values.ingressController.enabled .Values.ingressController.podDisruptionBudget.enabled }} | ||
apiVersion: policy/v1beta1 | ||
kind: PodDisruptionBudget | ||
metadata: | ||
name: "{{ template "kong.fullname" . }}-controller" | ||
labels: | ||
app: "{{ template "kong.name" . }}" | ||
spec: | ||
{{- if .Values.ingressController.podDisruptionBudget.minAvailable }} | ||
minAvailable: {{ .Values.ingressController.podDisruptionBudget.minAvailable }} | ||
{{- end }} | ||
{{- if .Values.ingressController.podDisruptionBudget.maxUnavailable }} | ||
maxUnavailable: {{ .Values.ingressController.podDisruptionBudget.maxUnavailable }} | ||
{{- end }} | ||
selector: | ||
matchLabels: | ||
app: {{ template "kong.name" . }} | ||
release: {{ .Release.Name }} | ||
component: controller | ||
{{- end }} |
Oops, something went wrong.