blob: 55eb926922110b3d87b5fda28a008c674fe0c9ac [file] [log] [blame]
Stephane Barbarie5e8d9e42018-02-07 16:15:05 -05001apiVersion: v1
2kind: Service
3metadata:
4 name: freeradius
5 labels:
6 name: freeradius
7spec:
8 clusterIP: None
9 ports:
10 - name: radius-auth
11 protocol: UDP
12 port: 1812
13 targetPort: 1812
14 - name: radius-acc
15 protocol: UDP
16 port: 1813
17 targetPort: 1813
18 - name: radius
19 port: 18120
20 targetPort: 18120
21 selector:
22 app: freeradius
23---
24apiVersion: apps/v1beta1
25kind: Deployment
26metadata:
27 name: freeradius
28spec:
29 replicas: 1
30 template:
31 metadata:
32 labels:
33 app: freeradius
34 annotations:
35 cni: "weave"
36 spec:
37 containers:
38 - name: freeradius
39 image: "marcelmaatkamp/freeradius"
40 env:
41 - name: POD_IP
42 valueFrom:
43 fieldRef:
44 fieldPath: status.podIP
45 - name: NAMESPACE
46 valueFrom:
47 fieldRef:
48 fieldPath: metadata.namespace
49 ports:
50 - containerPort: 1812
51 name: radauth-port
52 - containerPort: 1813
53 name: radacc-port
54 - containerPort: 18120
55 name: radius-port
56 volumeMounts:
57 - name: freeradius-config
58 mountPath: /etc/raddb/clients.conf
59 subPath: clients.conf
60 - name: freeradius-config
61 mountPath: /etc/raddb/users
62 subPath: users
63 volumes:
64 - name: freeradius-config
65 configMap:
66 name: freeradius-config