-
Notifications
You must be signed in to change notification settings - Fork 5
/
freeradius.yml
65 lines (65 loc) · 1.48 KB
/
freeradius.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
---
kind: Deployment
apiVersion: apps/v1
metadata:
name: freeradius
namespace: radius
spec:
replicas: 2
selector:
matchLabels:
name: freeradius
template:
metadata:
name: freeradius
labels:
name: freeradius
spec:
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
---
kind: Service
apiVersion: v1
metadata:
name: lb-freeradius
namespace: radius
annotations:
metallb.universe.tf/allow-shared-ip: 'true'
spec:
ports:
- name: 'radius'
protocol: UDP
port: 1812
targetPort: 1812
- name: 'radius-acct'
protocol: UDP
port: 1813
targetPort: 1813
selector:
name: freeradius
type: LoadBalancer
loadBalancerIP: 192.168.245.3