mirror of
https://github.com/clearml/clearml-helm-charts
synced 2025-01-31 09:06:48 +00:00
d13ad20e34
* Fixed: missing extraEnvs * Changed: bump version
98 lines
4.3 KiB
YAML
98 lines
4.3 KiB
YAML
{{- if .Values.clearml_serving_statistics.enabled }}
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
annotations: {}
|
|
labels:
|
|
clearml.serving.service: {{ include "clearmlServing.fullname" . }}-statistics
|
|
name: {{ include "clearmlServing.fullname" . }}-statistics
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
clearml.serving.service: {{ include "clearmlServing.fullname" . }}-statistics
|
|
strategy: {}
|
|
template:
|
|
metadata:
|
|
annotations: {}
|
|
labels:
|
|
clearml.serving.network/clearml-serving-backend: "true"
|
|
clearml.serving.service: {{ include "clearmlServing.fullname" . }}-statistics
|
|
spec:
|
|
{{- if .Values.imageCredentials.enabled }}
|
|
imagePullSecrets:
|
|
{{- if .Values.imageCredentials.existingSecret }}
|
|
- name: {{ .Values.imageCredentials.existingSecret }}
|
|
{{- else }}
|
|
- name: clearml-registry-key
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- if or .Values.clearml_serving_statistics.additionalConfigs .Values.clearml_serving_statistics.existingAdditionalConfigsConfigMap .Values.clearml_serving_statistics.existingAdditionalConfigsSecret }}
|
|
volumes:
|
|
- name: additional-config
|
|
{{- if or .Values.clearml_serving_statistics.existingAdditionalConfigsConfigMap }}
|
|
configMap:
|
|
name: {{ .Values.clearml_serving_statistics.existingAdditionalConfigsConfigMap }}
|
|
{{- else if or .Values.clearml_serving_statistics.existingAdditionalConfigsSecret }}
|
|
secret:
|
|
secretName: {{ .Values.clearml_serving_statistics.existingAdditionalConfigsSecret }}
|
|
{{- else if or .Values.clearml_serving_statistics.additionalConfigs }}
|
|
configMap:
|
|
name: "{{ include "clearmlServing.fullname" . }}-statistics-configmap"
|
|
{{- end }}
|
|
{{- end }}
|
|
containers:
|
|
- env:
|
|
- name: CLEARML_API_ACCESS_KEY
|
|
value: "{{ .Values.clearml.apiAccessKey }}"
|
|
- name: CLEARML_API_SECRET_KEY
|
|
value: "{{ .Values.clearml.apiSecretKey }}"
|
|
- name: CLEARML_API_HOST
|
|
value: "{{ .Values.clearml.apiHost }}"
|
|
- name: CLEARML_FILES_HOST
|
|
value: "{{ .Values.clearml.filesHost }}"
|
|
- name: CLEARML_WEB_HOST
|
|
value: "{{ .Values.clearml.webHost }}"
|
|
- name: CLEARML_DEFAULT_KAFKA_SERVE_URL
|
|
{{- if .Values.clearml.kafkaServeUrl }}
|
|
value: {{ .Values.clearml.kafkaServeUrl }}
|
|
{{- else }}
|
|
value: {{ include "clearmlServing.fullname" . }}-kafka:9092
|
|
{{- end }}
|
|
- name: CLEARML_SERVING_POLL_FREQ
|
|
value: "1.0"
|
|
- name: CLEARML_SERVING_TASK_ID
|
|
value: "{{ .Values.clearml.servingTaskId }}"
|
|
{{- if .Values.clearml_serving_statistics.extraPythonPackages }}
|
|
- name: CLEARML_EXTRA_PYTHON_PACKAGES
|
|
value: '{{ join " " .Values.clearml_serving_statistics.extraPythonPackages }}'
|
|
{{- end }}
|
|
{{- with .Values.clearml_serving_statistics.extraEnvironment }}
|
|
{{- toYaml . | nindent 12 }}
|
|
{{- end }}
|
|
image: "{{ .Values.clearml_serving_statistics.image.repository }}:{{ .Values.clearml_serving_statistics.image.tag }}"
|
|
name: {{ include "clearmlServing.fullname" . }}-statistics
|
|
ports:
|
|
- containerPort: 9999
|
|
{{- if or .Values.clearml_serving_statistics.additionalConfigs .Values.clearml_serving_statistics.existingAdditionalConfigsConfigMap .Values.clearml_serving_statistics.existingAdditionalConfigsSecret }}
|
|
volumeMounts:
|
|
- name: additional-config
|
|
mountPath: /opt/clearml/config
|
|
{{- end }}
|
|
{{- with .Values.clearml_serving_statistics.nodeSelector }}
|
|
nodeSelector:
|
|
{{- toYaml . | nindent 12 }}
|
|
{{- end }}
|
|
{{- with .Values.clearml_serving_statistics.affinity }}
|
|
affinity:
|
|
{{- toYaml . | nindent 12 }}
|
|
{{- end }}
|
|
{{- with .Values.clearml_serving_statistics.tolerations }}
|
|
tolerations:
|
|
{{- toYaml . | nindent 12 }}
|
|
{{- end }}
|
|
resources:
|
|
{{- toYaml .Values.clearml_serving_statistics.resources | nindent 12 }}
|
|
restartPolicy: Always
|
|
{{- end }}
|