Rabbitmq service and pod definition
Change-Id: Id6cddd20c32e493373f8faf1b2c76374d0f40628
This commit is contained in:
parent
04823bd45b
commit
559a2a02a5
|
@ -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
|
|
@ -0,0 +1,11 @@
|
||||||
|
kind: "Service"
|
||||||
|
apiVersion: "v1"
|
||||||
|
metadata:
|
||||||
|
name: "rabbitmq-service"
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: "rabbitmq"
|
||||||
|
ports:
|
||||||
|
-
|
||||||
|
protocol: "TCP"
|
||||||
|
port: 5672
|
Loading…
Reference in New Issue