-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkube.yaml
89 lines (89 loc) · 1.81 KB
/
kube.yaml
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
apiVersion: crd.projectcalico.org/v1
kind: IPPool
metadata:
name: ttt-eduroam-ip6-ippool
spec:
blockSize: 127
cidr: 2a0e:1cc1:1:0:7fff:ffff:ffff:ff28/125
disabled: false
nodeSelector: !all()
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: freeradius
namespace: ttt-eduroam
labels:
app: freeradius
spec:
replicas: 1
selector:
matchLabels:
app: freeradius
template:
metadata:
annotations:
cni.projectcalico.org/ipv6pools: "[\"ttt-eduroam-ip6-ippool\"]"
labels:
app: freeradius
spec:
volumes:
- name: eap-tls
secret:
secretName: eap-tls
- name: users
secret:
secretName: eap-users
containers:
- name: freeradius
image: as207960/ttt-eduroam-freeradius:12
args: ["-l", "stdout"]
ports:
- containerPort: 1812
volumeMounts:
- mountPath: "/eap-tls/"
name: eap-tls
- mountPath: "/etc/raddb/mods-config/files/"
name: users
envFrom:
- secretRef:
name: eduroam-secrets
---
apiVersion: v1
kind: Service
metadata:
name: freeradius
namespace: ttt-eduroam
spec:
type: LoadBalancer
externalTrafficPolicy: Local
selector:
app: freeradius
ports:
- port: 1812
targetPort: 1812
protocol: UDP
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: eap-cert
namespace: ttt-eduroam
spec:
secretName: eap-tls
duration: 2160h
renewBefore: 360h
commonName: transtechtent.com
isCA: false
privateKey:
size: 4096
algorithm: RSA
encoding: PKCS1
usages:
- server auth
dnsNames:
- transtechtent.com
issuerRef:
name: letsencrypt-as207960-ltd-uk
kind: ClusterIssuer
group: cert-manager.io