2021-01-13 19:20:15 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: legendary
|
|
|
|
spec:
|
|
|
|
replicas: 2
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: legendary
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: legendary
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: app
|
2021-01-15 22:50:47 +00:00
|
|
|
image: registry.gitlab.com/mythic-insight/legendary:1.2.1
|
2021-01-13 19:20:15 +00:00
|
|
|
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
|