-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a pdb template for the http-add-on interceptor
There is no pod disruption budget on the http addon interceptors, which means that during node rollover, there might not be any interceptors available to add requests to its queue. Since the queues themselves are in memory, that means that there would be dropped requests. Closes #658 Signed-off-by: Aaron Batilo <[email protected]>
- Loading branch information
Showing
2 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
http-add-on/templates/interceptor/poddisruptionbudget.yaml
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,21 @@ | ||
{{- if .Values.interceptor.pdb.enabled -}} | ||
apiVersion: policy/v1 | ||
kind: PodDisruptionBudget | ||
metadata: | ||
labels: | ||
app.kubernetes.io/component: interceptor | ||
{{- include "keda-http-add-on.labels" . | indent 4 }} | ||
name: {{ .Chart.Name }}-interceptor | ||
namespace: {{ .Release.Namespace }} | ||
spec: | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/component: interceptor | ||
{{- include "keda-http-add-on.matchLabels" . | indent 6 }} | ||
{{- if .Values.interceptor.pdb.minAvailable }} | ||
minAvailable: {{ .Values.interceptor.pdb.minAvailable }} | ||
{{- end }} | ||
{{- if .Values.interceptor.pdb.maxUnavailable }} | ||
maxUnavailable: {{ .Values.interceptor.pdb.maxUnavailable }} | ||
{{- end }} | ||
{{- 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