David Bainbridge | 564fcfb | 2019-07-18 23:58:35 +0000 | [diff] [blame] | 1 | --- |
| 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 Bainbridge | 564fcfb | 2019-07-18 23:58:35 +0000 | [diff] [blame] | 15 | --- |
David Bainbridge | 7fa6cb4 | 2020-06-12 16:52:38 -0700 | [diff] [blame] | 16 | apiVersion: apps/v1 |
David Bainbridge | 564fcfb | 2019-07-18 23:58:35 +0000 | [diff] [blame] | 17 | kind: Deployment |
| 18 | metadata: |
David Bainbridge | 7fa6cb4 | 2020-06-12 16:52:38 -0700 | [diff] [blame] | 19 | name: "{{ template "fullname" . }}" |
| 20 | namespace: "{{ .Release.Namespace }}" |
David Bainbridge | 564fcfb | 2019-07-18 23:58:35 +0000 | [diff] [blame] | 21 | spec: |
| 22 | replicas: 1 |
David Bainbridge | 7fa6cb4 | 2020-06-12 16:52:38 -0700 | [diff] [blame] | 23 | selector: |
| 24 | matchLabels: |
| 25 | app: radius |
| 26 | release: "{{ .Release.Name }}" |
David Bainbridge | 564fcfb | 2019-07-18 23:58:35 +0000 | [diff] [blame] | 27 | template: |
| 28 | metadata: |
| 29 | labels: |
| 30 | app: radius |
David Bainbridge | 7fa6cb4 | 2020-06-12 16:52:38 -0700 | [diff] [blame] | 31 | release: "{{ .Release.Name }}" |
David Bainbridge | 564fcfb | 2019-07-18 23:58:35 +0000 | [diff] [blame] | 32 | spec: |
| 33 | serviceAccountName: {{ tpl .Values.serviceaccount . }} |
Randy Levensalor | bcc5e14 | 2022-08-19 08:57:40 -0600 | [diff] [blame^] | 34 | {{- with .Values.images.radius.pullSecrets }} |
| 35 | imagePullSecrets: |
| 36 | {{- toYaml . | nindent 8 }} |
| 37 | {{- end }} |
David Bainbridge | 564fcfb | 2019-07-18 23:58:35 +0000 | [diff] [blame] | 38 | 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 |