diff --git a/k8s/configmap.yaml b/k8s/configmap.yaml index d420dee..8b85720 100644 --- a/k8s/configmap.yaml +++ b/k8s/configmap.yaml @@ -9,4 +9,6 @@ data: SENTRY_DSN: RELEASE_ID: birbemu-k8s RELEASEMODE: release - + REDIS_URL: "redis://birb-scheduler-redis:6379/0" + DEFAULT_WHILE_NOT_DEFINED: "cloud;http://192.168.110.100:30420/" + DEVICE_TIMEOUT: 95 diff --git a/k8s/redis.yml b/k8s/redis.yml new file mode 100644 index 0000000..6043a09 --- /dev/null +++ b/k8s/redis.yml @@ -0,0 +1,37 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: birb-scheduler-redis + namespace: turbomemer + labels: + app: birb-scheduler-redis +spec: + selector: + matchLabels: + app: birb-scheduler-redis + strategy: + type: Recreate + template: + metadata: + labels: + app: birb-scheduler-redis + spec: + containers: + - name: birb-scheduler-redis + image: redis + ports: + - containerPort: 6379 +--- +apiVersion: v1 +kind: Service +metadata: + name: birb-scheduler-redis +spec: + selector: + app: birb-scheduler-redis + ports: + - name: birb-scheduler-redis + protocol: TCP + port: 6379 + targetPort: 6379 \ No newline at end of file