blob: e325998e8a59a187d303b376f285469c89a84cda [file] [log] [blame]
David Bainbridge564fcfb2019-07-18 23:58:35 +00001---
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.
David Bainbridge564fcfb2019-07-18 23:58:35 +000015---
David Bainbridge7fa6cb42020-06-12 16:52:38 -070016apiVersion: apps/v1
David Bainbridge564fcfb2019-07-18 23:58:35 +000017kind: Deployment
18metadata:
David Bainbridge7fa6cb42020-06-12 16:52:38 -070019 name: "{{ template "fullname" . }}"
20 namespace: "{{ .Release.Namespace }}"
David Bainbridge564fcfb2019-07-18 23:58:35 +000021spec:
22 replicas: 1
David Bainbridge7fa6cb42020-06-12 16:52:38 -070023 selector:
24 matchLabels:
25 app: radius
26 release: "{{ .Release.Name }}"
David Bainbridge564fcfb2019-07-18 23:58:35 +000027 template:
28 metadata:
29 labels:
30 app: radius
David Bainbridge7fa6cb42020-06-12 16:52:38 -070031 release: "{{ .Release.Name }}"
David Bainbridge564fcfb2019-07-18 23:58:35 +000032 spec:
33 serviceAccountName: {{ tpl .Values.serviceaccount . }}
Randy Levensalorbcc5e142022-08-19 08:57:40 -060034 {{- with .Values.images.radius.pullSecrets }}
35 imagePullSecrets:
36 {{- toYaml . | nindent 8 }}
37 {{- end }}
David Bainbridge564fcfb2019-07-18 23:58:35 +000038 containers:
39 - name: radius
40 image: {{ tpl .Values.images.radius.registry . }}{{ tpl .Values.images.radius.repository . }}:{{ tpl .Values.images.radius.tag . }}
41 imagePullPolicy: {{ tpl .Values.images.radius.pullPolicy . }}
42 env:
43 - name: POD_IP
44 valueFrom:
45 fieldRef:
46 fieldPath: status.podIP
47 - name: NAMESPACE
48 valueFrom:
49 fieldRef:
50 fieldPath: metadata.namespace
51 - name: RADIUS_LISTEN_IP
52 value: "*"
53 - name: USERS_FILE
54 value: "/etc/raddb/users"
55 - name: RADIUS_CLIENTS
56 value: "SECRET@0.0.0.0/0"
57 ports:
58 - containerPort: 1812
59 name: radauth-port
60 - containerPort: 1813
61 name: radacc-port
62 - containerPort: 18120
63 name: radius-port
64 volumeMounts:
65 - name: freeradius-config
66 mountPath: /etc/raddb/clients.conf
67 subPath: clients.conf
68 - name: freeradius-config
69 mountPath: /etc/raddb/users
70 subPath: users
71 volumes:
72 - name: freeradius-config
73 configMap:
74 name: freeradius-config