Skip to content

Commit

Permalink
[stable/k8s-spot-rescheduler] Add pod disruption budget (helm#8899)
Browse files Browse the repository at this point in the history
Signed-off-by: Emily Karisch <[email protected]>
  • Loading branch information
QuingKhaos authored and k8s-ci-robot committed Nov 19, 2018
1 parent b8900c5 commit bd50880
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/k8s-spot-rescheduler/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "v0.2.0"
description: A k8s-spot-rescheduler Helm chart for Kubernetes
name: k8s-spot-rescheduler
version: 0.3.1
version: 0.4.0
keywords:
- spot
- rescheduler
Expand Down
17 changes: 17 additions & 0 deletions stable/k8s-spot-rescheduler/templates/pdb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{{- if .Values.podDisruptionBudget -}}
apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
name: {{ template "k8s-spot-rescheduler.fullname" . }}
labels:
app: {{ template "k8s-spot-rescheduler.name" . }}
chart: {{ template "k8s-spot-rescheduler.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
selector:
matchLabels:
app: {{ template "k8s-spot-rescheduler.name" . }}
release: {{ .Release.Name }}
{{ toYaml .Values.podDisruptionBudget | indent 2 }}
{{- end -}}
3 changes: 3 additions & 0 deletions stable/k8s-spot-rescheduler/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
# Declare variables to be passed into your templates.
replicaCount: 1

podDisruptionBudget: {}
# maxUnavailable: 1

image:
repository: quay.io/pusher/k8s-spot-rescheduler
tag: v0.2.0
Expand Down

0 comments on commit bd50880

Please sign in to comment.