Files
enginex-bi_series-vc-cnn/helm-chart/asr-tco/templates/job.yaml
zhousha 55a67e817e update
2025-08-06 15:38:55 +08:00

64 lines
1.9 KiB
YAML

apiVersion: batch/v1
kind: Job
metadata:
name: {{ include "judgeflow.fullname" . }}
labels:
{{- include "judgeflow.labels" . | nindent 4 }}
{{- with .Values.podLabels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
template:
metadata:
labels:
{{- include "judgeflow.labels" . | nindent 8 }}
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- with .Values.priorityclassname }}
priorityClassName: "{{ . }}"
{{- end }}
containers:
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- with .Values.env }}
env:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- if and (hasKey .Values "service") (hasKey .Values.service "ports") }}
ports:
{{- range .Values.service.ports }}
- name: {{ .name }}
containerPort: {{ .port }}
{{- end }}
{{- end }}
{{- if hasKey .Values "command" }}
command: {{ .Values.command }}
{{- end }}
volumeMounts:
{{- toYaml .Values.volumeMounts | nindent 12 }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
restartPolicy: Never
{{- with .Values.volumes }}
volumes:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
backoffLimit: 0