4 changed files with 89 additions and 0 deletions
@ -0,0 +1,17 @@ |
|||
--- |
|||
apiVersion: v1 |
|||
kind: ConfigMap |
|||
metadata: |
|||
namespace: dev-environment |
|||
name: trialytix-config-backend-testing |
|||
labels: |
|||
app: trialytix |
|||
data: |
|||
DJANGO_DB_ENGINE: django.db.backends.postgresql_psycopg2 |
|||
DJANGO_DB_NAME: trialytix-testing |
|||
DJANGO_DB_USER: trialytix-testing |
|||
DJANGO_DB_PASSWORD: trialytix-testing |
|||
DJANGO_DB_HOST: postgres-lb |
|||
ALLOWED_HOSTS: '["*"]' |
|||
FRONTEND_URL: 'http://trialytix-testing.k3s.semapp.lan' |
|||
|
|||
@ -0,0 +1,40 @@ |
|||
--- |
|||
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: |
|||
- name: trialytix-backend |
|||
image: packages.semapp.lan:5000/trialytix_backend:1.1.0 |
|||
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 |
|||
@ -0,0 +1,18 @@ |
|||
--- |
|||
apiVersion: networking.k8s.io/v1beta1 |
|||
kind: Ingress |
|||
metadata: |
|||
name: trialytix-ingress |
|||
namespace: trialytix |
|||
annotations: |
|||
nginx.ingress.kubernetes.io/rewrite-target: / |
|||
spec: |
|||
rules: |
|||
- host: trialytix.k8s.semapp.lan |
|||
http: |
|||
paths: |
|||
- path: / |
|||
pathType: Prefix |
|||
backend: |
|||
serviceName: trialytix-testing-entrypoint |
|||
servicePort: 8000 |
|||
@ -0,0 +1,14 @@ |
|||
--- |
|||
apiVersion: v1 |
|||
kind: Service |
|||
metadata: |
|||
name: trialytix-testing-entrypoint |
|||
namespace: trialytix |
|||
spec: |
|||
type: NodePort |
|||
selector: |
|||
app: trialytix |
|||
ports: |
|||
- port: 80 |
|||
targetPort: 8100 |
|||
nodePort: 30002 |
|||
Loading…
Reference in new issue