Phase 3: Configure API and Worker to use standalone PostGIS and Docker Hub images
This commit is contained in:
parent
f02e818a2b
commit
8817ba5233
|
|
@ -15,7 +15,7 @@ spec:
|
|||
spec:
|
||||
containers:
|
||||
- name: geocrop-api
|
||||
image: frankchine/geocrop-api:v1
|
||||
image: frankchine/geocrop-api:latest
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 8000
|
||||
|
|
@ -24,6 +24,13 @@ spec:
|
|||
value: "redis.geocrop.svc.cluster.local"
|
||||
- name: SECRET_KEY
|
||||
value: "portfolio-production-secret-key-123"
|
||||
- name: DB_URL
|
||||
value: "postgresql://postgres:$(DB_PASSWORD)@geocrop-db:5433/geocrop_gis"
|
||||
- name: DB_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: geocrop-db-secret
|
||||
key: password
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
|
|
|||
|
|
@ -15,8 +15,27 @@ spec:
|
|||
spec:
|
||||
containers:
|
||||
- name: geocrop-worker
|
||||
image: frankchine/geocrop-worker:v1
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue