Skip to content

Commit 9b59f39

Browse files
authored
adding pod disruption budget (#17)
* dev: enable pod disruption budget * dev: update values yaml
1 parent c5efae5 commit 9b59f39

File tree

4 files changed

+23
-2
lines changed

4 files changed

+23
-2
lines changed

cr.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ charts-dir: squadcast-helm
55
sign: false
66
charts_repo_url: https://squadcasthub.github.io/helm-infra
77
index-path: .
8-
version: 0.2.6
8+
version: 0.2.7

squadcast-helm/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ name: squadcast-helm
33
description: A Helm chart for Kubernetes
44
type: application
55

6-
version: 0.2.6
6+
version: 0.2.7
77

88
appVersion: "1.16.0"

squadcast-helm/templates/pdb.yaml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
# PodDisruptionBudget for squadcast-helm
3+
{{- if .Values.pdb.enabled }}
4+
apiVersion: policy/v1
5+
kind: PodDisruptionBudget
6+
metadata:
7+
name: {{ include "squadcast-helm.fullname" . }}
8+
labels:
9+
{{- include "squadcast-helm.labels" . | nindent 4 }}
10+
namespace: {{ .Values.namespace }}
11+
spec:
12+
minAvailable: {{ .Values.pdb.minAvailable | default 1 }}
13+
selector:
14+
matchLabels:
15+
{{- include "squadcast-helm.selectorLabels" . | nindent 6 }}
16+
{{- end }}

values.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,8 @@ serviceMonitor:
9494
# schedule: "*/1 * * * *"
9595
# command: ["/bin/sh"]
9696
# args: ["-c", "echo 'hello world'"]
97+
98+
# to enable pdb
99+
pdb:
100+
enabled: true
101+
minAvailable: 1

0 commit comments

Comments
 (0)