www/deploy/deployment.yaml

113 lines
3.4 KiB
YAML
Raw Normal View History

2022-06-08 04:07:37 +00:00
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: garrettmills-dev
2022-11-29 08:26:39 +00:00
namespace: default
2022-06-08 04:07:37 +00:00
spec:
2023-01-16 01:48:22 +00:00
replicas: 2
2022-06-08 04:07:37 +00:00
selector:
matchLabels:
app: garrettmills-dev
template:
metadata:
name: garrettmills-dev-www
2022-11-29 08:26:39 +00:00
namespace: default
2022-06-08 04:07:37 +00:00
labels:
app: garrettmills-dev
spec:
2023-01-16 01:48:22 +00:00
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app
operator: In
values: ['garrettmills-dev']
topologyKey: 'kubernetes.io/hostname'
2022-06-08 04:07:37 +00:00
containers:
- name: garrettmills-www
image: registry.millslan.net/garrettmills/www
livenessProbe:
httpGet:
path: /
port: 8000
initialDelaySeconds: 60
periodSeconds: 10
readinessProbe:
httpGet:
path: /
port: 8000
initialDelaySeconds: 30
2022-06-08 04:07:37 +00:00
env:
- name: EXTOLLO_LOGGING_LEVEL
value: '4'
- name: SERVER_FORCE_SSL
value: 'true'
2022-11-15 03:59:03 +00:00
- name: ENABLE_CORS
value: 'true'
2022-06-08 04:07:37 +00:00
- 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
2022-06-08 04:07:37 +00:00
- 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