blob: baa161507fe4dadbd72cbe44360c6f71c72250a6 [file] [log] [blame]
Stephane Barbarie5e8d9e42018-02-07 16:15:05 -05001apiVersion: v1
2kind: Service
3metadata:
4 name: freeradius
Stephane Barbarie35595062018-02-08 08:34:39 -05005 namespace: voltha
Stephane Barbarie5e8d9e42018-02-07 16:15:05 -05006 labels:
7 name: freeradius
8spec:
9 clusterIP: None
10 ports:
11 - name: radius-auth
12 protocol: UDP
13 port: 1812
14 targetPort: 1812
15 - name: radius-acc
16 protocol: UDP
17 port: 1813
18 targetPort: 1813
19 - name: radius
20 port: 18120
21 targetPort: 18120
22 selector:
23 app: freeradius
24---
25apiVersion: apps/v1beta1
26kind: Deployment
27metadata:
28 name: freeradius
Stephane Barbarie35595062018-02-08 08:34:39 -050029 namespace: voltha
Stephane Barbarie5e8d9e42018-02-07 16:15:05 -050030spec:
31 replicas: 1
32 template:
33 metadata:
34 labels:
35 app: freeradius
36 annotations:
37 cni: "weave"
38 spec:
39 containers:
40 - name: freeradius
41 image: "marcelmaatkamp/freeradius"
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 ports:
52 - containerPort: 1812
53 name: radauth-port
54 - containerPort: 1813
55 name: radacc-port
56 - containerPort: 18120
57 name: radius-port
58 volumeMounts:
59 - name: freeradius-config
60 mountPath: /etc/raddb/clients.conf
61 subPath: clients.conf
62 - name: freeradius-config
63 mountPath: /etc/raddb/users
64 subPath: users
65 volumes:
66 - name: freeradius-config
67 configMap:
68 name: freeradius-config