Skip to content

Commit

Permalink
Merge pull request #268 from dysnix/bsc-add-pdb
Browse files Browse the repository at this point in the history
[bsc] add pdb support
  • Loading branch information
voron authored Nov 9, 2023
2 parents c08a72d + 578ed98 commit 528330a
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dysnix/bsc/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: bsc
description: Binance Smart Chain chart for Kubernetes
version: "0.6.29"
version: "0.6.30"
appVersion: "v1.2.4"

keywords:
Expand Down
21 changes: 21 additions & 0 deletions dysnix/bsc/templates/pdb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{{- if .Values.podDisruptionBudget.enabled }}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: {{ .Release.Name }}
labels:
{{- include "bsc.labels" . | nindent 4 }}
spec:
{{- with .Values.podDisruptionBudget }}
{{- if .minAvailable }}
minAvailable: {{ .minAvailable }}
{{- end }}
{{- if .maxUnavailable }}
maxUnavailable: {{ .maxUnavailable }}
{{- end }}
{{- end }}
selector:
matchLabels:
app.kubernetes.io/name: {{ include "bsc.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}
5 changes: 5 additions & 0 deletions dysnix/bsc/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -544,3 +544,8 @@ affinity:
app.kubernetes.io/name: "bsc"
bsc/chain: "mainnet"
topologyKey: failure-domain.beta.kubernetes.io/zone

podDisruptionBudget:
enabled: false
minAvailable: 1
# maxUnavailable: 1

0 comments on commit 528330a

Please sign in to comment.