blob: 876cf7bfb05803e95b398c483bf871d9be0a832d [file] [log] [blame]
David Bainbridge7fa6cb42020-06-12 16:52:38 -07001---
2# Copyright 2017-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15---
16apiVersion: v1
17kind: Service
18metadata:
19 name: "{{ template "fullname" . }}"
20 namespace: "{{ .Release.Namespace }}"
21spec:
22 ports:
23 - name: radius-auth
24 protocol: UDP
25 port: 1812
26 targetPort: 1812
27 - name: radius-acc
28 protocol: UDP
29 port: 1813
30 targetPort: 1813
Randy Levensalorfcdad842022-09-04 08:29:49 -060031{{ if .Values.svc.twoSvcs }}
32 selector:
33 app: radius
34 release: "{{ .Release.Name }}"
35 type: {{ .Values.svc.type }}
36---
37apiVersion: v1
38kind: Service
39metadata:
40 name: "{{ template "fullname" . }}-inner-tunnel"
41 namespace: "{{ .Release.Namespace }}"
42spec:
43 ports:
44{{ end }}
David Bainbridge7fa6cb42020-06-12 16:52:38 -070045 - name: radius
46 port: 18120
47 targetPort: 18120
48 selector:
49 app: radius
50 release: "{{ .Release.Name }}"
Randy Levensalorfcdad842022-09-04 08:29:49 -060051 type: {{ .Values.svc.type }}