-
Notifications
You must be signed in to change notification settings - Fork 6
/
netclient-gateway.yaml
56 lines (56 loc) · 1.31 KB
/
netclient-gateway.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: Deployment
metadata:
name: netclient-gateway
labels:
app: netclient-gateway
spec:
selector:
matchLabels:
app: netclient-gateway
replicas: 1
template:
metadata:
labels:
app: netclient-gateway
spec:
hostNetwork: true
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 1
preference:
matchExpressions:
- key: gateway
operator: In
values:
- "true"
containers:
- name: netclient
image: gravitl/netclient:v0.9.3
env:
- name: NETCLIENT_ROAMING
value: "no"
- name: NETCLIENT_PORT
value: "51822"
- name: NETCLIENT_IS_STATIC
value: "yes"
- name: NETCLIENT_NAME
value: "k8s-gw"
- name: NETCLIENT_ENDPOINT
valueFrom:
fieldRef:
fieldPath: status.hostIP
- name: TOKEN
value: "TOKEN_VALUE"
volumeMounts:
- mountPath: /etc/netclient
name: etc-netclient
securityContext:
privileged: true
volumes:
- hostPath:
path: /etc/netclient
type: DirectoryOrCreate
name: etc-netclient