Rabbitmq service and pod definition

Change-Id: Id6cddd20c32e493373f8faf1b2c76374d0f40628
This commit is contained in:
Artur Zarzycki 2016-06-01 12:13:42 +02:00
parent 04823bd45b
commit 559a2a02a5
2 changed files with 28 additions and 0 deletions

17
service/rabbitmq.yaml.j2 Normal file
View File

@ -0,0 +1,17 @@
apiVersion: v1
kind: Pod
metadata:
name: rabbitmq
labels:
app: rabbitmq
spec:
containers:
- name: rabbitmq
image: {{ namespace }}/rabbitmq:{{ tag }}
env:
- name: RABBITMQ_CLUSTER_COOKIE
value: password
imagePullPolicy: Always
ports:
- containerPort: 5672
hostPort: 5672

View File

@ -0,0 +1,11 @@
kind: "Service"
apiVersion: "v1"
metadata:
name: "rabbitmq-service"
spec:
selector:
app: "rabbitmq"
ports:
-
protocol: "TCP"
port: 5672