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