1 apiVersion: apps/v1beta2
4 name: {{ template "horovod.fullname" . }}
6 app: {{ template "horovod.name" . }}
7 chart: {{ template "horovod.chart" . }}
8 release: {{ .Release.Name }}
9 heritage: {{ .Release.Service }}
14 app: {{ template "horovod.name" . }}
15 release: {{ .Release.Name }}
16 heritage: {{ .Release.Service }}
18 serviceName: {{ template "horovod.fullname" . }}
19 podManagementPolicy: {{ .Values.worker.podManagementPolicy }}
20 replicas: {{.Values.worker.number}}
24 app: {{ template "horovod.name" . }}
25 chart: {{ template "horovod.chart" . }}
26 release: {{ .Release.Name }}
27 heritage: {{ .Release.Service }}
32 app: {{ template "horovod.name" . }}
33 release: {{ .Release.Name }}
35 {{- if .Values.useHostNetwork }}
36 hostNetwork: {{ .Values.useHostNetwork }}
37 dnsPolicy: ClusterFirstWithHostNet
39 {{- if .Values.useHostPID }}
40 hostPID: {{ .Values.useHostPID }}
43 - name: {{ template "horovod.fullname" . }}-cm
45 name: {{ template "horovod.fullname" . }}
47 - key: hostfile.config
56 {{- if .Values.ssh.useSecrets }}
57 - name: {{ template "horovod.fullname" . }}-secret
59 secretName: {{ template "horovod.fullname" . }}
67 {{- if .Values.volumes }}
68 {{ toYaml .Values.volumes | indent 6 }}
72 image: "{{ .Values.worker.image.repository }}:{{ .Values.worker.image.tag }}"
73 imagePullPolicy: {{ .Values.worker.image.pullPolicy }}
76 value: "{{ .Values.ssh.port }}"
77 {{- if .Values.ssh.useSecrets }}
79 value: "{{ .Values.ssh.useSecrets }}"
81 {{- if .Values.master.env }}
82 {{- range $key, $value := .Values.master.env }}
87 {{- if .Values.worker.privileged }}
92 - containerPort: {{ .Values.ssh.port }}
94 - name: {{ template "horovod.fullname" . }}-cm
95 mountPath: /horovod/generated
96 {{- if .Values.ssh.useSecrets }}
97 - name: {{ template "horovod.fullname" . }}-secret
99 mountPath: "/etc/secret-volume"
101 {{- if .Values.volumeMounts }}
102 {{ toYaml .Values.volumeMounts | indent 8 }}
105 - /horovod/generated/run.sh
106 {{- if .Values.ssh.useSecrets }}
110 - /horovod/generated/check.sh
111 initialDelaySeconds: 1
115 {{ toYaml .Values.resources | indent 10 }}