Update Kubernetes settings
This commit is contained in:
parent
77f1fbc2cc
commit
bd88617dc5
@ -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:
|
||||||
|
@ -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: ""
|
||||||
|
Loading…
Reference in New Issue
Block a user