Skip to content

Commit

Permalink
[xy] Add volume mount.
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxiaoyou1993 committed Mar 9, 2023
1 parent 3f84a53 commit 2e9d499
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
10 changes: 7 additions & 3 deletions charts/mageai/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
# volumeMounts:
# - name: mage-fs
# mountPath: /home/src
volumeMounts:
- name: mage-fs
mountPath: /home/src
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand All @@ -67,3 +67,7 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.volumes }}
volumes:
{{- toYaml . | nindent 8 }}
{{- end }}
7 changes: 6 additions & 1 deletion charts/mageai/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ image:

imagePullSecrets: []
nameOverride: "mageai"
fullnameOverride: "mageai-chart"
fullnameOverride: "mageai"

serviceAccount:
# Specifies whether a service account should be created
Expand Down Expand Up @@ -80,3 +80,8 @@ nodeSelector: {}
tolerations: []

affinity: {}

volumes:
- name: mage-fs
hostPath:
path: /path/to/mage_project

0 comments on commit 2e9d499

Please sign in to comment.