blob: 5b0d07e26d62083ddfdb808ac5c1b2892859f3d0 [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 . }}
34 containers:
35 - name: radius
36 image: {{ tpl .Values.images.radius.registry . }}{{ tpl .Values.images.radius.repository . }}:{{ tpl .Values.images.radius.tag . }}
37 imagePullPolicy: {{ tpl .Values.images.radius.pullPolicy . }}
38 env:
39 - name: POD_IP
40 valueFrom:
41 fieldRef:
42 fieldPath: status.podIP
43 - name: NAMESPACE
44 valueFrom:
45 fieldRef:
46 fieldPath: metadata.namespace
47 - name: RADIUS_LISTEN_IP
48 value: "*"
49 - name: USERS_FILE
50 value: "/etc/raddb/users"
51 - name: RADIUS_CLIENTS
52 value: "SECRET@0.0.0.0/0"
53 ports:
54 - containerPort: 1812
55 name: radauth-port
56 - containerPort: 1813
57 name: radacc-port
58 - containerPort: 18120
59 name: radius-port
60 volumeMounts:
61 - name: freeradius-config
62 mountPath: /etc/raddb/clients.conf
63 subPath: clients.conf
64 - name: freeradius-config
65 mountPath: /etc/raddb/users
66 subPath: users
67 volumes:
68 - name: freeradius-config
69 configMap:
70 name: freeradius-config