mirror of
https://github.com/ansible/awx-operator.git
synced 2026-05-06 13:22:50 +00:00
Issue #1: Add RabbitMQ Deployment and service.
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -5,3 +5,4 @@
|
||||
with_items:
|
||||
- tower_postgres.yaml.j2
|
||||
- tower_memcached.yaml.j2
|
||||
- tower_rabbitmq.yaml.j2
|
||||
|
||||
48
roles/tower/templates/tower_rabbitmq.yaml.j2
Normal file
48
roles/tower/templates/tower_rabbitmq.yaml.j2
Normal 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
|
||||
Reference in New Issue
Block a user