-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add pdb for making pixxel services fault tolerant (#116)
* feat: add pdb for making pixxel services fault tolerant * fix: added additional pod labels to deployment so that pdb can target only deployment pods * fix: replaced to non org specific labels * feat: bump in minor version for new feature addition * feat: added min available condition, also added a condition such that pdb can only attach to deployment whose replica count > 1, added flag to switch on/off pdb * fix: removed minAvailable
- Loading branch information
Showing
4 changed files
with
19 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{{- if and .Values.pdb.enabled (gt .Values.replicaCount 1) }} | ||
apiVersion: policy/v1 | ||
kind: PodDisruptionBudget | ||
metadata: | ||
name: "{{ template "app.fullname" . }}-pdb" | ||
spec: | ||
maxUnavailable: {{ .Values.pdb.maxUnavailable }} | ||
selector: | ||
matchLabels: | ||
{{- include "app.selectorLabels" . | nindent 6 }} | ||
app.kubernetes.io/component: "deployment" | ||
{{- end }} |
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