legendary-doc-site/infrastructure/kube.yaml

30 lines
692 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: legendary
spec:
replicas: 2
selector:
matchLabels:
app: legendary
template:
metadata:
labels:
app: legendary
spec:
containers:
- name: app
image: registry.gitlab.com/mythic-insight/legendary:1.2.1
ports:
- containerPort: 4000
env:
- name: DATABASE_URL
valueFrom:
secretKeyRef:
name: database
key: url
- name: SECRET_KEY_BASE
valueFrom:
secretKeyRef:
name: legendary
key: secret-key-base