www/deploy/deployment.yaml
garrettmills b21492b510
Some checks failed
continuous-integration/drone Build is failing
Specify namespace in K8s spec
2022-11-29 02:26:39 -06:00

90 lines
2.8 KiB
YAML

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: garrettmills-dev
namespace: default
spec:
selector:
matchLabels:
app: garrettmills-dev
template:
metadata:
name: garrettmills-dev-www
namespace: default
labels:
app: garrettmills-dev
spec:
containers:
- name: garrettmills-www
image: registry.millslan.net/garrettmills/www
env:
- name: EXTOLLO_LOGGING_LEVEL
value: '4'
- name: SERVER_FORCE_SSL
value: 'true'
- name: ENABLE_CORS
value: 'true'
- name: DATABASE_USERNAME
valueFrom:
secretKeyRef:
name: garrettmills-dev-secrets
key: DATABASE_USERNAME
optional: false
- name: DATABASE_PASSWORD
valueFrom:
secretKeyRef:
name: garrettmills-dev-secrets
key: DATABASE_PASSWORD
optional: false
- name: DATABASE_HOST
valueFrom:
secretKeyRef:
name: garrettmills-dev-secrets
key: DATABASE_HOST
optional: false
- name: REDIS_HOST
value: redis.redis.svc.cluster.local
- name: REDIS_PASSWORD
valueFrom:
secretKeyRef:
name: garrettmills-dev-secrets
key: REDIS_PASSWORD
optional: false
- name: DATABASE_NAME
valueFrom:
secretKeyRef:
name: garrettmills-dev-secrets
key: DATABASE_NAME
optional: false
- name: GOTIFY_SERVER
valueFrom:
secretKeyRef:
name: garrettmills-dev-secrets
key: GOTIFY_SERVER
optional: false
- name: GOTIFY_TOKEN
valueFrom:
secretKeyRef:
name: garrettmills-dev-secrets
key: GOTIFY_TOKEN
optional: false
- name: COREID_CLIENT_ID
valueFrom:
secretKeyRef:
name: garrettmills-dev-secrets
key: COREID_CLIENT_ID
optional: false
- name: COREID_CLIENT_SECRET
valueFrom:
secretKeyRef:
name: garrettmills-dev-secrets
key: COREID_CLIENT_SECRET
optional: false
- name: COREID_BASE
valueFrom:
secretKeyRef:
name: garrettmills-dev-secrets
key: COREID_BASE
optional: false