forked from mandelsoft/kubelink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path31-router.yaml
57 lines (54 loc) · 1.35 KB
/
31-router.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
apiVersion: apps/v1
kind: DaemonSet
metadata:
labels:
app: kubelink
component: kubelink-router
name: kubelink-router
namespace: kubelink
spec:
selector:
matchLabels:
app: kubelink
component: kubelink-router
template:
metadata:
labels:
app: kubelink
component: kubelink-router
spec:
hostNetwork: true
volumes:
- name: datadir
hostPath:
path: /var/lib/kubelink
type: DirectoryOrCreate
containers:
- name: router
image: mandelsoft/kubelink:qual
imagePullPolicy: "Always"
args:
- --controllers=router
- --server-port-http=8080
- --pod-cidr=100.96.0.0/11
- --node-cidr=10.250.0.0/16
- --ipip=shared
- --service=kubelink
- --datafile=/mnt/data/routes
securityContext:
privileged: true
livenessProbe:
httpGet:
path: /healthz
port: 8080
scheme: HTTP
initialDelaySeconds: 30
timeoutSeconds: 5
ports:
- containerPort: 8080
protocol: TCP
volumeMounts:
- name: datadir
mountPath: /mnt/data
serviceAccountName: kubelink
terminationGracePeriodSeconds: 120