blob: e325998e8a59a187d303b376f285469c89a84cda [file] [log] [blame]
---
# Copyright 2017-present Open Networking Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: "{{ template "fullname" . }}"
namespace: "{{ .Release.Namespace }}"
spec:
replicas: 1
selector:
matchLabels:
app: radius
release: "{{ .Release.Name }}"
template:
metadata:
labels:
app: radius
release: "{{ .Release.Name }}"
spec:
serviceAccountName: {{ tpl .Values.serviceaccount . }}
{{- with .Values.images.radius.pullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: radius
image: {{ tpl .Values.images.radius.registry . }}{{ tpl .Values.images.radius.repository . }}:{{ tpl .Values.images.radius.tag . }}
imagePullPolicy: {{ tpl .Values.images.radius.pullPolicy . }}
env:
- name: POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: RADIUS_LISTEN_IP
value: "*"
- name: USERS_FILE
value: "/etc/raddb/users"
- name: RADIUS_CLIENTS
value: "SECRET@0.0.0.0/0"
ports:
- containerPort: 1812
name: radauth-port
- containerPort: 1813
name: radacc-port
- containerPort: 18120
name: radius-port
volumeMounts:
- name: freeradius-config
mountPath: /etc/raddb/clients.conf
subPath: clients.conf
- name: freeradius-config
mountPath: /etc/raddb/users
subPath: users
volumes:
- name: freeradius-config
configMap:
name: freeradius-config