42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: geocrop-worker
|
|
namespace: geocrop
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: geocrop-worker
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: geocrop-worker
|
|
spec:
|
|
containers:
|
|
- name: geocrop-worker
|
|
image: frankchine/geocrop-worker:latest
|
|
imagePullPolicy: Always
|
|
env:
|
|
- name: REDIS_HOST
|
|
value: "redis.geocrop.svc.cluster.local"
|
|
- name: MINIO_ENDPOINT
|
|
value: "minio.geocrop.svc.cluster.local:9000"
|
|
- name: MINIO_ACCESS_KEY
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: geocrop-secrets
|
|
key: minio-access-key
|
|
- name: MINIO_SECRET_KEY
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: geocrop-secrets
|
|
key: minio-secret-key
|
|
- name: DB_URL
|
|
value: "postgresql://postgres:$(DB_PASSWORD)@geocrop-db:5433/geocrop_gis"
|
|
- name: DB_PASSWORD
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: geocrop-db-secret
|
|
key: password
|