From bd88617dc5da2225d37eb51ff24181209258ff59 Mon Sep 17 00:00:00 2001 From: "R. Miles McCain" Date: Tue, 5 May 2020 14:42:26 -0400 Subject: [PATCH] Update Kubernetes settings --- kubernetes/deployments.yml | 18 +++++++++--------- kubernetes/secrets_template.yml | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/kubernetes/deployments.yml b/kubernetes/deployments.yml index 65f151b..6cb9e06 100644 --- a/kubernetes/deployments.yml +++ b/kubernetes/deployments.yml @@ -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: diff --git a/kubernetes/secrets_template.yml b/kubernetes/secrets_template.yml index b698042..f9374cb 100644 --- a/kubernetes/secrets_template.yml +++ b/kubernetes/secrets_template.yml @@ -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: ""