mirror of
https://github.com/ansible/awx-operator.git
synced 2026-05-06 13:22:50 +00:00
Issue #42: Make sure redis is listening on TCP port.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user