summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Zarzycki <azarzycki@mirantis.com>2016-06-01 12:13:42 +0200
committerArtur Zarzycki <azarzycki@mirantis.com>2016-06-01 13:51:17 +0200
commit559a2a02a54d6cc4410e5cf90b99af9e87c1ad60 (patch)
tree0ac1cc3417004578dea04115bbb9e1c0dde85e22
parent04823bd45b4eb67af6439ada3935416628531e50 (diff)
Rabbitmq service and pod definition
-rw-r--r--service/rabbitmq.yaml.j217
-rw-r--r--service/service-rabbitmq.yaml.j211
2 files changed, 28 insertions, 0 deletions
diff --git a/service/rabbitmq.yaml.j2 b/service/rabbitmq.yaml.j2
new file mode 100644
index 0000000..e152902
--- /dev/null
+++ b/service/rabbitmq.yaml.j2
@@ -0,0 +1,17 @@
1apiVersion: v1
2kind: Pod
3metadata:
4 name: rabbitmq
5 labels:
6 app: rabbitmq
7spec:
8 containers:
9 - name: rabbitmq
10 image: {{ namespace }}/rabbitmq:{{ tag }}
11 env:
12 - name: RABBITMQ_CLUSTER_COOKIE
13 value: password
14 imagePullPolicy: Always
15 ports:
16 - containerPort: 5672
17 hostPort: 5672
diff --git a/service/service-rabbitmq.yaml.j2 b/service/service-rabbitmq.yaml.j2
new file mode 100644
index 0000000..e595fdc
--- /dev/null
+++ b/service/service-rabbitmq.yaml.j2
@@ -0,0 +1,11 @@
1kind: "Service"
2apiVersion: "v1"
3metadata:
4 name: "rabbitmq-service"
5spec:
6 selector:
7 app: "rabbitmq"
8 ports:
9 -
10 protocol: "TCP"
11 port: 5672