Skip to content

Commit 6150681

Browse files
committed
mount runpod credentials into skypilot-apiserver
Signed-off-by: David Young <[email protected]>
1 parent 5811c9b commit 6150681

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-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-06
5+
version: 0.0.1-pre-07
66
appVersion: "0.0"
77
dependencies:
88
- name: ingress-nginx

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ spec:
2121
{{- with .Values.podSecurityContext }}
2222
securityContext:
2323
{{- toYaml . | nindent 8 }}
24-
{{- end }}
24+
{{- end }}
2525
runtimeClassName: {{ .Values.runtimeClassName }}
2626
containers:
2727
- name: skypilot-api
@@ -118,6 +118,11 @@ spec:
118118
- name: kube-config
119119
mountPath: /root/.kube
120120
{{- end }}
121+
{{- if .Values.runpodCredentials.enabled }}
122+
- name: runpod-config
123+
mountPath: /root/.runpod
124+
readOnly: true
125+
{{- end }}
121126
initContainers:
122127
{{- if .Values.awsCredentials.enabled }}
123128
- name: create-aws-credentials
@@ -205,7 +210,7 @@ spec:
205210
volumeMounts:
206211
- name: runpod-config
207212
mountPath: /root/.runpod
208-
{{- end }}
213+
{{- end }}
209214
volumes:
210215
{{- if .Values.storage.enabled }}
211216
- name: state-volume

0 commit comments

Comments
 (0)