geocrop-platform./k8s/nextgen/next-gen-chart/templates/deployment.yaml

40 lines
1.2 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name }}
labels:
app: {{ .Release.Name }}
branch: {{ .Values.branchName }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app: {{ .Release.Name }}
template:
metadata:
labels:
app: {{ .Release.Name }}
spec:
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
containerPort: {{ .Values.service.port }}
protocol: TCP
env:
- name: PORT
value: "{{ .Values.service.port }}"
- name: NODE_ENV
value: "production"
- name: DB_PATH
value: "/app/data/school.db"
- name: JWT_SECRET
value: "africa-alert-production-secret-2024"
- name: ALLOWED_ORIGINS
value: "https://main.next-gen.techarvest.co.zw,https://next-gen.techarvest.co.zw,https://dev.next-gen.techarvest.co.zw,http://localhost:3000"
resources:
{{- toYaml .Values.resources | nindent 12 }}