Update Kubernetes settings

This commit is contained in:
R. Miles McCain 2020-05-05 14:42:26 -04:00
parent 77f1fbc2cc
commit bd88617dc5
No known key found for this signature in database
GPG Key ID: 24F9B6A2588C5408
2 changed files with 11 additions and 11 deletions

View File

@ -16,7 +16,7 @@ spec:
app: "shynet-webserver"
spec:
containers:
- name: "covideo-webserver"
- name: "shynet-webserver"
image: "milesmcc/shynet:latest"
imagePullPolicy: Always
envFrom:
@ -41,7 +41,7 @@ spec:
app: "shynet-celeryworker"
spec:
containers:
- name: "covideo-celeryworker"
- name: "shynet-celeryworker"
image: "milesmcc/shynet:latest"
command: ["./celeryworker.sh"]
imagePullPolicy: Always
@ -52,32 +52,32 @@ spec:
apiVersion: v1
kind: Service
metadata:
name: redis
name: shynet-redis
spec:
ports:
- port: 6379
name: redis
clusterIP: None
selector:
app: redis
app: shynet-redis
---
apiVersion: apps/v1beta2
kind: StatefulSet
metadata:
name: redis
name: shynet-redis
spec:
selector:
matchLabels:
app: redis
serviceName: redis
app: shynet-redis
serviceName: shynet-redis
replicas: 1
template:
metadata:
labels:
app: redis
app: shynet-redis
spec:
containers:
- name: redis
- name: shynet-redis
image: redis:latest
imagePullPolicy: Always
ports:

View File

@ -12,8 +12,8 @@ stringData:
TIME_ZONE: "America/New_York"
# Redis configuration (if you use the default Kubernetes config, this will work)
REDIS_CACHE_LOCATION: "redis://redis.default.svc.cluster.local/0"
CELERY_BROKER_URL: "redis://redis.default.svc.cluster.local/1"
REDIS_CACHE_LOCATION: "redis://shynet-redis.default.svc.cluster.local/0"
CELERY_BROKER_URL: "redis://shynet-redis.default.svc.cluster.local/1"
# PostgreSQL settings
DB_NAME: ""