Skip to content

Commit

Permalink
added podDisruptionBudget (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
yurymuski authored Dec 10, 2022
1 parent 78dd548 commit 6382c7f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/centrifugo/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
name: centrifugo
description: Centrifugo is a scalable real-time messaging server in language-agnostic way
version: 9.0.6
version: 9.0.7
appVersion: 4.0.4
home: https://centrifugal.dev
icon: https://centrifugal.dev/img/favicon.png
Expand Down
18 changes: 18 additions & 0 deletions charts/centrifugo/templates/poddisruptionbudget.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{{- if .Values.podDisruptionBudget.enabled }}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
labels:
{{- include "centrifugo.labels" . | nindent 4 }}
app.kubernetes.io/component: controller
{{- with .Values.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
name: {{ include "centrifugo.fullname" . }}
namespace: {{ .Release.Namespace }}
spec:
selector:
matchLabels:
{{- include "centrifugo.selectorLabels" . | nindent 6 }}
minAvailable: {{ .Values.podDisruptionBudget.minAvailable }}
{{- end }}
4 changes: 4 additions & 0 deletions charts/centrifugo/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ autoscaling:
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80

podDisruptionBudget:
enabled: false
minAvailable: 1

terminationGracePeriodSeconds: 30

podAnnotations: {}
Expand Down

0 comments on commit 6382c7f

Please sign in to comment.