-
Notifications
You must be signed in to change notification settings - Fork 5
/
01-deployment.yml
45 lines (45 loc) · 1.21 KB
/
01-deployment.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
kind: Deployment
apiVersion: apps/v1
metadata:
name: freeradius
spec:
replicas: 1
selector:
matchLabels:
name: freeradius
template:
metadata:
name: freeradius
labels:
name: freeradius
spec:
# volumes:
# - name: nfs-freeradius
# persistentVolumeClaim:
# claimName: freeradius
volumes:
- name: raddb-files
configMap:
name: freeradius-files
optional: true
- name: raddb-secrets
secret:
secretName: freeradius-secrets
containers:
- name: freeradius
image: 'freeradius/freeradius-server:latest-alpine'
ports:
- containerPort: 1812
protocol: UDP
- containerPort: 1813
protocol: UDP
volumeMounts:
- name: raddb-secrets
mountPath: /etc/raddb/mods-config/files/authorize
subPath: authorize
- name: raddb-secrets
mountPath: /etc/raddb/clients.conf
subPath: clients.conf
- name: raddb-files
mountPath: /etc/raddb/radiusd.conf
subPath: radiusd.conf