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

View File

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