Issue #1: Add RabbitMQ Deployment and service.

This commit is contained in:
Jeff Geerling
2019-11-05 13:19:00 -06:00
parent 2b48292bcc
commit b9b7114e09
4 changed files with 56 additions and 2 deletions

View File

@@ -11,4 +11,3 @@ spec:
tower_postgres_pass: awxpass
tower_postgres_image: postgres:9.6
tower_postgres_storage_request: 8Gi
tower_memcached_image: 'memcached:1.5'

View File

@@ -1,2 +1,8 @@
---
# defaults file for tower
tower_task_image: awx_task:1.0.0.8
tower_web_image: awx_web:1.0.0.8
tower_memcached_image: memcached:alpine
tower_rabbitmq_image: rabbitmq:3
tower_postgres_pass: awxpass
tower_postgres_image: postgres:9.6
tower_postgres_storage_request: 8Gi

View File

@@ -5,3 +5,4 @@
with_items:
- tower_postgres.yaml.j2
- tower_memcached.yaml.j2
- tower_rabbitmq.yaml.j2

View File

@@ -0,0 +1,48 @@
# RabbitMQ Deployment.
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: '{{ meta.name }}-rabbitmq'
namespace: {{ meta.namespace }}
labels:
app: tower-rabbitmq
spec:
replicas: 1
selector:
matchLabels:
app: tower-rabbitmq
template:
metadata:
labels:
app: tower-rabbitmq
spec:
containers:
- image: '{{ tower_rabbitmq_image }}'
name: rabbitmq
env:
- name: RABBITMQ_DEFAULT_VHOST
value: awx
- name: RABBITMQ_NODE_PORT
value: 5672
ports:
- containerPort: 15672
- containerPort: 5672
# RabbitMQ Service.
---
apiVersion: v1
kind: Service
metadata:
name: '{{ meta.name }}-rabbitmq'
namespace: '{{ meta.namespace }}'
labels:
app: tower-rabbitmq
spec:
clusterIP: None
ports:
- port: 5672
protocol: TCP
targetPort: 5672
selector:
app: tower-rabbitmq