Browse Source

Rabbitmq service and pod definition

Change-Id: Id6cddd20c32e493373f8faf1b2c76374d0f40628
Artur Zarzycki 2 years ago
parent
commit
559a2a02a5
2 changed files with 28 additions and 0 deletions
  1. 17
    0
      service/rabbitmq.yaml.j2
  2. 11
    0
      service/service-rabbitmq.yaml.j2

+ 17
- 0
service/rabbitmq.yaml.j2 View File

@@ -0,0 +1,17 @@
1
+apiVersion: v1
2
+kind: Pod
3
+metadata:
4
+  name: rabbitmq
5
+  labels:
6
+    app: rabbitmq
7
+spec:
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

+ 11
- 0
service/service-rabbitmq.yaml.j2 View File

@@ -0,0 +1,11 @@
1
+kind: "Service"
2
+apiVersion: "v1"
3
+metadata:
4
+  name: "rabbitmq-service"
5
+spec:
6
+  selector:
7
+    app: "rabbitmq"
8
+  ports:
9
+    -
10
+      protocol: "TCP"
11
+      port: 5672

Loading…
Cancel
Save