Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{{- if .Values.pdb.enabled }}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: {{ include "github-actions-cache-server.fullname" . }}
labels:
{{- include "github-actions-cache-server.labels" . | nindent 4 }}
spec:
selector:
matchLabels:
{{- include "github-actions-cache-server.selectorLabels" . | nindent 6 }}
{{- if hasKey .Values.pdb "minAvailable" }}
minAvailable: {{ .Values.pdb.minAvailable }}
{{- else if hasKey .Values.pdb "maxUnavailable" }}
maxUnavailable: {{ .Values.pdb.maxUnavailable }}
{{- else }}
minAvailable: 1
{{- end }}
{{- end }}


10 changes: 10 additions & 0 deletions install/kubernetes/github-actions-cache-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,13 @@ sidecars: []
# Init containers to run before the main cache server container starts
initContainers: []

#
# Pod Disruption Budget (PDB)
# Helps ensure not all Pods are evicted simultaneously during voluntary disruptions.
# Disabled by default to avoid blocking evictions on single-replica setups.
#
pdb:
enabled: false
minAvailable: 1
# maxUnavailable: 1