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.
52 lines
1.4 KiB
52 lines
1.4 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:1.1.0
|
|
ports:
|
|
- containerPort: 5100
|
|
envFrom:
|
|
- configMapRef:
|
|
name: trialytix-config-backend-testing
|
|
# Frontend container
|
|
- name: trialytix-frontend
|
|
image: packages.semapp.lan:5000/trialytix_frontend:1.1.0
|
|
ports:
|
|
- containerPort: 8100
|
|
envFrom:
|
|
- configMapRef:
|
|
name: trialytix-config-backend-testing
|
|
|
|
|
|
# TODO: kubectl validation hinders us from inserting base64-encoded strings
|
|
# cf. also `baseline-secret.testing.yml`
|
|
#- name: APP_KEY
|
|
# valueFrom:
|
|
# secretKeyRef:
|
|
# name: baseline-secret-testing
|
|
# key: app_key
|
|
# - name: trialytix-frontend
|
|
# image: packages.semapp.lan:5000/trialytix_frontend:1.1.0
|
|
# env:
|
|
# - name: NODE_ENV
|
|
# valueFrom:
|
|
# configMapKeyRef:
|
|
# name: trialytix-config-testing
|
|
# key: node_env
|
|
|