blob: 09d245d0083efa31fb048886f6c827ead9f6a665 [file] [log] [blame]
Jeremy Ronquillo223db002020-06-05 10:28:22 -07001{{- /*
Jeremy Ronquilloec2d3e42020-06-05 11:33:39 -07002
Jeremy Ronquillo223db002020-06-05 10:28:22 -07003# Copyright 2019-present Open Networking Foundation
4#
Jeremy Ronquillo6046ce32020-06-18 11:06:29 -07005# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
Jeremy Ronquilloec2d3e42020-06-05 11:33:39 -07006
Jeremy Ronquillo223db002020-06-05 10:28:22 -07007*/ -}}
8
9---
10apiVersion: v1
11kind: Service
12metadata:
13 name: accelleran-cbrs-redis
14 labels:
15{{ tuple "accelleran-cbrs-redis" . | include "accelleran-cbrs-common.metadata_labels" | indent 4 }}
16spec:
17 selector:
18{{ tuple "accelleran-cbrs-redis" . | include "accelleran-cbrs-common.metadata_labels" | indent 4 }}
19 ports:
20 - name: redis-port
21 port: {{ .Values.config.redis.ports.redisPort.port }}
22 protocol: {{ .Values.config.redis.ports.redisPort.protocol }}
23
24---
25apiVersion: v1
26kind: Service
27metadata:
28 name: accelleran-cbrs-redis-exernal
29 labels:
30{{ tuple "accelleran-cbrs-redis" . | include "accelleran-cbrs-common.metadata_labels" | indent 4 }}
31spec:
32 selector:
33{{ tuple "accelleran-cbrs-redis" . | include "accelleran-cbrs-common.metadata_labels" | indent 4 }}
34 type: NodePort
35 ports:
36 - name: redis-port
37 port: {{ .Values.config.redis.ports.redisPort.port }}
38 nodePort: {{ .Values.config.redis.ports.redisPort.nodePort }}
39 protocol: {{ .Values.config.redis.ports.redisPort.protocol }}