Skip to content

Commit 2f87fa3

Browse files
committed
add PDB
1 parent 79bfcc5 commit 2f87fa3

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

charts/stable/skypilot/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: skypilot
33
description: A Helm chart for deploying SkyPilot API server on Kubernetes
44
icon: "https://raw.githubusercontent.com/skypilot-org/skypilot/master/charts/skypilot/skypilot.svg"
55
type: application
6-
version: 0.0.2-pre-10
6+
version: 0.0.2-pre-11
77
appVersion: "0.0"
88
dependencies:
99
- name: ingress-nginx
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{{ if .Values.podDisruptionBudget.enabled }}
2+
apiVersion: policy/v1
3+
kind: PodDisruptionBudget
4+
metadata:
5+
name: {{ .Release.Name }}-api
6+
namespace: {{ .Release.Namespace }}
7+
spec:
8+
selector:
9+
matchLabels:
10+
app: {{ .Release.Name }}-api
11+
minAvailable: {{ .Values.podDisruptionBudget.minAvailable }}
12+
{{- end }}

charts/stable/skypilot/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ apiService:
44
image: berkeleyskypilot/skypilot-nightly:latest
55
# Number of replicas to deploy - replicas > 1 is not well tested.
66
replicas: 1
7+
8+
# Enable/disable PodDisruptionBudget for the API server when replicas > 1
9+
podDisruptionBudget:
10+
enabled: false
11+
minAvailable: 1
12+
713
preDeployHook: |-
814
# Run commands before deploying the API server, e.g. installing an admin policy.
915
# Refer to https://docs.skypilot.co/en/latest/cloud-setup/policy.html for more details about admin policy.

0 commit comments

Comments
 (0)