fix: 格式化yaml
This commit is contained in:
parent
52a06ea097
commit
f4a282ef26
|
@ -18,6 +18,8 @@ spec:
|
|||
labels:
|
||||
{{- include "ailab-demo.selectorLabels" . | nindent 8 }}
|
||||
spec:
|
||||
affinity:
|
||||
{{- include "ailab-demo.GPUNodeAffinity" . | nindent 8 }}
|
||||
{{- with .Values.imagePullSecrets }}
|
||||
imagePullSecrets:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
|
@ -35,12 +37,18 @@ spec:
|
|||
- name: http
|
||||
containerPort: {{ .Values.service.port }}
|
||||
protocol: TCP
|
||||
{{- if .Values.livenessProbe }}
|
||||
livenessProbe:
|
||||
{{- toYaml .Values.livenessProbe | nindent 12 }}
|
||||
{{ end }}
|
||||
{{- if .Values.readinessProbe }}
|
||||
readinessProbe:
|
||||
{{- toYaml .Values.readinessProbe | nindent 12 }}
|
||||
{{ end}}
|
||||
{{- if .Values.resources }}
|
||||
resources:
|
||||
{{- toYaml .Values.resources | nindent 12 }}
|
||||
{{- end }}
|
||||
volumeMounts:
|
||||
- mountPath: /mnt/atpdata/huggingface
|
||||
name: huggingface
|
||||
|
@ -52,8 +60,6 @@ spec:
|
|||
nodeSelector:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
affinity:
|
||||
{{- include "ailab-demo.GPUNodeAffinity" . | nindent 8 }}
|
||||
{{- with .Values.tolerations }}
|
||||
tolerations:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
|
|
|
@ -60,9 +60,11 @@ resources: {}
|
|||
# limits:
|
||||
# cpu: 100m
|
||||
# memory: 128Mi
|
||||
# nvidia.com/gpu: 1
|
||||
# requests:
|
||||
# cpu: 100m
|
||||
# memory: 128Mi
|
||||
# nvidia.com/gpu: 1
|
||||
|
||||
# GPU resource configuration
|
||||
gpuResource:
|
||||
|
@ -91,8 +93,7 @@ huggingface:
|
|||
# These are disabled by default, as they are not required for the demo
|
||||
# application to function. If you want to enable them, you can uncomment
|
||||
# the following lines and adjust them as necessary.
|
||||
livenessProbe:
|
||||
{}
|
||||
livenessProbe: {}
|
||||
# failureThreshold: 3
|
||||
# httpGet:
|
||||
# path: /
|
||||
|
@ -101,8 +102,7 @@ livenessProbe:
|
|||
# periodSeconds: 10
|
||||
# successThreshold: 1
|
||||
# timeoutSeconds: 1
|
||||
readinessProbe:
|
||||
{}
|
||||
readinessProbe: {}
|
||||
# failureThreshold: 3
|
||||
# httpGet:
|
||||
# path: /
|
||||
|
|
Loading…
Reference in New Issue