blob: d788b7441033c685518cad196bb43156d8e44e2d [file] [log] [blame]
Jeremy Ronquillo223db002020-06-05 10:28:22 -07001{{/*
Jeremy Ronquilloec2d3e42020-06-05 11:33:39 -07002# Copyright 2019-present Open Networking Foundation
Jeremy Ronquillo223db002020-06-05 10:28:22 -07003
Jeremy Ronquillo6046ce32020-06-18 11:06:29 -07004# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
Jeremy Ronquillo223db002020-06-05 10:28:22 -07005*/}}
6
7{{- $context := . -}}
8{{ range .Values.config.phylo.sources }}
9{{- $name := printf "%s-%s" "phylo" .key -}}
10---
11apiVersion: v1
12kind: Service
13metadata:
Hyunsun Moon3d1e9362020-11-29 20:03:51 -080014 name: rabbitmq-{{ .key }}
Jeremy Ronquillo223db002020-06-05 10:28:22 -070015 labels:
16{{ tuple $name $context | include "phylo.metadata_labels" | indent 4 }}
17spec:
18 selector:
19{{ tuple $name $context | include "phylo.metadata_labels" | indent 4 }}
20 ports:
21 - port: 15672
22 targetPort: 15672
23 protocol: TCP
24 name: tcp-15672
25 - port: 5672
26 targetPort: 5672
27 protocol: TCP
28 name: tcp-5672
29 type: NodePort
30{{ end }}