Skip to content

Commit

Permalink
feat(pencil): Add pod disruption budget (#69)
Browse files Browse the repository at this point in the history
Add pod disruption budget to chart
  • Loading branch information
RWejlgaard authored Jun 21, 2024
1 parent 25d22c1 commit 3618063
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,4 @@ spec:
volumes:
- name: {{ .Release.Name }}-certs
secret:
secretName: {{ include "certs.secret.name" . }}
secretName: {{ include "certs.secret.name" . }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{{- if .Values.pdb.create }}
apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
name: {{ .Release.Name }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "common.labels" . | indent 4 }}
spec:
minAvailable: {{ .Values.pdb.minAvailable }}
maxUnavailable: {{ .Values.pdb.maxUnavailable }}
selector:
matchLabels:
{{- include "common.labels" . | indent 6 }}
{{- end }}
5 changes: 5 additions & 0 deletions charts/kubernetes-sidecar-injector/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ podAnnotations: {}
podLabels: {}
podSecurityContext: {}

pdb:
create: false
minAvailable: 1
maxUnavailable: 1

sidecars:
dataKey: sidecars.yaml

Expand Down

0 comments on commit 3618063

Please sign in to comment.