You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.3 KiB
49 lines
1.3 KiB
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: trialytix-testing
|
|
namespace: dev-environment
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
environment: testing
|
|
app: trialytix
|
|
template:
|
|
metadata:
|
|
labels:
|
|
environment: testing
|
|
app: trialytix
|
|
spec:
|
|
containers:
|
|
# Backend container
|
|
- name: trialytix-backend
|
|
image: packages.semapp.lan:5000/trialytix_backend:kubernetes-test
|
|
ports:
|
|
- containerPort: 5100
|
|
name: trialytix-back
|
|
protocol: TCP
|
|
envFrom:
|
|
- configMapRef:
|
|
name: trialytix-config-backend-testing
|
|
imagePullPolicy: Always
|
|
# Frontend container
|
|
- name: trialytix-frontend
|
|
image: packages.semapp.lan:5000/trialytix_frontend:kubernetes-test
|
|
ports:
|
|
- containerPort: 8100
|
|
name: trialytix-front
|
|
protocol: TCP
|
|
volumeMounts:
|
|
- mountPath: /etc/nginx/conf.d
|
|
readOnly: true
|
|
name: nginx-trialytix-conf
|
|
envFrom:
|
|
- configMapRef:
|
|
name: trialytix-config-backend-testing
|
|
imagePullPolicy: Always
|
|
volumes:
|
|
- name: nginx-trialytix-conf
|
|
configMap:
|
|
name: nginx-trialytix-conf
|
|
|