Stephane Barbarie | 5e8d9e4 | 2018-02-07 16:15:05 -0500 | [diff] [blame] | 1 | apiVersion: v1 |
| 2 | kind: Service |
| 3 | metadata: |
| 4 | name: freeradius |
Stephane Barbarie | 3559506 | 2018-02-08 08:34:39 -0500 | [diff] [blame] | 5 | namespace: voltha |
Stephane Barbarie | 5e8d9e4 | 2018-02-07 16:15:05 -0500 | [diff] [blame] | 6 | labels: |
| 7 | name: freeradius |
| 8 | spec: |
| 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 | --- |
| 25 | apiVersion: apps/v1beta1 |
| 26 | kind: Deployment |
| 27 | metadata: |
| 28 | name: freeradius |
Stephane Barbarie | 3559506 | 2018-02-08 08:34:39 -0500 | [diff] [blame] | 29 | namespace: voltha |
Stephane Barbarie | 5e8d9e4 | 2018-02-07 16:15:05 -0500 | [diff] [blame] | 30 | spec: |
| 31 | replicas: 1 |
| 32 | template: |
| 33 | metadata: |
| 34 | labels: |
| 35 | app: freeradius |
| 36 | annotations: |
Stephane Barbarie | 2d4e07f | 2018-03-26 16:46:45 -0400 | [diff] [blame] | 37 | cni: "calico" |
Stephane Barbarie | 5e8d9e4 | 2018-02-07 16:15:05 -0500 | [diff] [blame] | 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 |