# Deployment description --- apiVersion: apps/v1 kind: Deployment metadata: name: trialytix-esculape namespace: trialytix-environment spec: replicas: 1 selector: matchLabels: app: trialytix-esculape template: metadata: labels: app: trialytix-esculape spec: containers: # Backend container - name: trialytix-backend image: packages.semapp.lan:5000/trialytix_backend:1.7.0-rc1 resources: requests: memory: "512Mi" cpu: "100m" limits: memory: "1024Mi" cpu: "4" ports: - containerPort: 5100 name: trialytix-back protocol: TCP envFrom: - configMapRef: name: trialytix-config-backend-prod imagePullPolicy: Always # Frontend container - name: trialytix-frontend image: packages.semapp.lan:5000/trialytix_frontend:1.7.0-rc1 resources: requests: memory: "256Mi" cpu: "100m" limits: memory: "512Mi" cpu: "4" ports: - containerPort: 8100 name: trialytix-front protocol: TCP volumeMounts: - mountPath: /etc/nginx/conf.d readOnly: true name: nginx-trialytix-esculape-conf envFrom: - configMapRef: name: trialytix-config-backend-prod imagePullPolicy: Always volumes: - name: nginx-trialytix-esculape-conf configMap: name: nginx-trialytix-esculape-conf # Env Configuration --- apiVersion: v1 kind: ConfigMap metadata: namespace: trialytix-environment name: trialytix-config-backend-prod labels: app: trialytix-esculape data: DJANGO_DB_ENGINE: 'django.db.backends.postgresql' DJANGO_DB_NAME: 'trialytix-esculape' DJANGO_DB_USER: 'trialytix-esculape' DJANGO_DB_PASSWORD: 'Zb