Skip to content

Commit 7d09f40

Browse files
committed
add support for runtimeClassName
Signed-off-by: David Young <[email protected]>
1 parent 4f8c2bb commit 7d09f40

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

charts/stable/skypilot/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: skypilot
33
description: A Helm chart for deploying SkyPilot API server on Kubernetes
44
type: application
5-
version: 0.0.1-pre-03
5+
version: 0.0.1-pre-04
66
appVersion: "0.0"
77
dependencies:
88
- name: ingress-nginx

charts/stable/skypilot/templates/api-deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ spec:
2222
securityContext:
2323
{{- toYaml . | nindent 8 }}
2424
{{- end }}
25+
runtimeClassName: {{ .Values.runtimeClassName }}
2526
containers:
2627
- name: skypilot-api
2728
image: {{ .Values.apiService.image }}

charts/stable/skypilot/values.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,17 @@ gcpCredentials:
128128

129129
# Set securityContext for the api pod (defaults to empty but allows users to override)
130130
securityContext:
131-
runAsNonRoot: true
131+
capabilities:
132+
drop:
133+
- ALL
134+
allowPrivilegeEscalation: false
132135

133136
# Set securityContext for the api container inside the api pod (defaults to empty but allows users to override)
134137
podSecurityContext:
135-
runAsNonRoot: true
138+
capabilities:
139+
drop:
140+
- ALL
141+
allowPrivilegeEscalation: false
142+
143+
# Set the runtime class
144+
runtimeClassName:

0 commit comments

Comments
 (0)