-
Notifications
You must be signed in to change notification settings - Fork 2
/
32b-broker-wireguardmode.yaml
83 lines (81 loc) · 2.04 KB
/
32b-broker-wireguardmode.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
---
apiVersion: v1
kind: Service
metadata:
labels:
app: kubelink
annotations:
dns.gardener.cloud/class: garden
dns.gardener.cloud/dnsnames: kubelink.kubelink1.ringdev.shoot.dev.k8s-hana.ondemand.com
dns.gardener.cloud/ttl: "500"
service.beta.kubernetes.io/aws-load-balancer-type: "nlb" # On AWS an NLB has to be used for UDP
name: kubelink
namespace: kubelink
spec:
selector:
app: kubelink
component: kubelink-broker
ports:
- name: wireguard
port: 8777
protocol: UDP
targetPort: 8188
sessionAffinity: None
type: LoadBalancer
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: kubelink-broker
component: kubelink-broker
name: kubelink-broker
namespace: kubelink
spec:
replicas: 1
selector:
matchLabels:
app: kubelink
component: kubelink-broker
template:
metadata:
labels:
app: kubelink
component: kubelink-broker
spec:
hostNetwork: true
containers:
- name: broker
image: mandelsoft/kubelink:qual
imagePullPolicy: "Always"
args:
- --controllers=broker
- --mode=wireguard
- --secret=wireguard # used to store wireguard key
- --server-port-http=8180
- --broker-port=8188
- --node-cidr=10.250.0.0/16
- --service-cidr=100.64.0.0/20
- --ifce-name=kubelink
- --ipip=shared
- --dns-advertisement
- --dns-propagation=dns
- --coredns-configure
securityContext:
privileged: true
livenessProbe:
httpGet:
path: /healthz
port: 8180
scheme: HTTP
initialDelaySeconds: 30
timeoutSeconds: 5
ports:
- containerPort: 8180
protocol: TCP
- containerPort: 8188
protocol: UDP
resources:
{}
serviceAccountName: kubelink
terminationGracePeriodSeconds: 120