Issue #42: Make sure redis is listening on TCP port.

This commit is contained in:
Jeff Geerling
2020-05-26 16:13:14 -05:00
parent e4510ff974
commit aeecc94017
3 changed files with 1 additions and 25 deletions

View File

@@ -6,8 +6,8 @@
with_items:
- tower_memcached.yaml.j2
- tower_postgres.yaml.j2
- tower_redis.yaml.j2
- tower_config.yaml.j2
- tower_redis.yaml.j2
- tower_web.yaml.j2
- tower_task.yaml.j2

View File

@@ -121,12 +121,6 @@ data:
USE_X_FORWARDED_PORT = True
redis_conf: |
unixsocket /var/run/redis/redis.sock
unixsocketperm 777
port 0
bind 127.0.0.1
nginx_conf: |
worker_processes 1;
pid /tmp/nginx.pid;

View File

@@ -20,29 +20,12 @@ spec:
containers:
- image: '{{ tower_redis_image }}'
name: redis
args: ["/usr/local/etc/redis/redis.conf"]
ports:
- containerPort: 6379
volumeMounts:
- name: redis-config
mountPath: /usr/local/etc/redis/redis.conf
subPath: redis.conf
readOnly: true
- name: redis-socket
mountPath: "/var/run/redis"
resources:
requests:
memory: "{{ tower_redis_mem_request }}"
cpu: "{{ tower_redis_cpu_request }}"
volumes:
- name: redis-config
configMap:
name: "{{ meta.name }}-tower-configmap"
items:
- key: redis_conf
path: redis.conf
- name: redis-socket
emtpyDir: {}
# Redis Service.
---
@@ -54,7 +37,6 @@ metadata:
labels:
app: tower-redis
spec:
clusterIP: None
ports:
- port: 6379
protocol: TCP