jmarchel 1343df3a6d Add forwarding messages comonent
Change-Id: I81cd8c771132270f85d1f5aed69764aaf1ce47d9
2024-03-04 15:41:47 +00:00

67 lines
2.3 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "nebulous-prediction-orchestrator.fullname" . }}
labels:
{{- include "nebulous-prediction-orchestrator.labels" . | nindent 4 }}
spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
{{- end }}
selector:
matchLabels:
{{- include "nebulous-prediction-orchestrator.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "nebulous-prediction-orchestrator.selectorLabels" . | nindent 8 }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "nebulous-prediction-orchestrator.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
containers:
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
- name: EXN_HOST
value: "{{ .Values.application.env.exnHost }}"
- name: EXN_PORT
value: "{{ .Values.application.env.exnPort | toString }}"
- name: EXN_USERNAME
value: "{{ .Values.application.env.exnUsername }}"
- name: EXN_PASSWORD
value: "{{ .Values.application.env.exnPassword }}"
- name: EXN_RETRY_ATTEMPTS
value: "{{ .Values.application.env.exnRetryAttempts | toString }}"
- name: SERVER_PORT
value: "{{ .Values.application.env.serverPort | toString }}"
ports:
- name: http
containerPort: 3333
protocol: TCP
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}