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:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: geocrop-api
|
- name: geocrop-api
|
||||||
image: frankchine/geocrop-api:v1
|
image: frankchine/geocrop-api:latest
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8000
|
- containerPort: 8000
|
||||||
|
|
@ -24,6 +24,13 @@ spec:
|
||||||
value: "redis.geocrop.svc.cluster.local"
|
value: "redis.geocrop.svc.cluster.local"
|
||||||
- name: SECRET_KEY
|
- name: SECRET_KEY
|
||||||
value: "portfolio-production-secret-key-123"
|
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
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
|
|
||||||
|
|
@ -15,8 +15,27 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: geocrop-worker
|
- name: geocrop-worker
|
||||||
image: frankchine/geocrop-worker:v1
|
image: frankchine/geocrop-worker:latest
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
env:
|
env:
|
||||||
- name: REDIS_HOST
|
- name: REDIS_HOST
|
||||||
value: "redis.geocrop.svc.cluster.local"
|
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