2021-07-16 03:14:48 +08:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: DaemonSet
|
|
|
|
metadata:
|
|
|
|
name: netclient
|
|
|
|
labels:
|
|
|
|
app: netclient
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: netclient
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: netclient
|
|
|
|
spec:
|
|
|
|
hostNetwork: true
|
|
|
|
containers:
|
|
|
|
- name: netclient
|
2022-10-18 21:51:22 +08:00
|
|
|
image: gravitl/netclient:v0.16.2
|
2021-07-16 03:14:48 +08:00
|
|
|
env:
|
2022-07-08 03:54:52 +08:00
|
|
|
- name: TOKEN
|
|
|
|
value: "TOKEN_VALUE"
|
2021-07-16 03:14:48 +08:00
|
|
|
volumeMounts:
|
|
|
|
- mountPath: /etc/netclient
|
|
|
|
name: etc-netclient
|
|
|
|
securityContext:
|
|
|
|
privileged: true
|
2022-07-13 12:38:30 +08:00
|
|
|
volumes:
|
|
|
|
- hostPath:
|
|
|
|
# change path for every netclient deployed, e.g. /etc/netclient-1, /etc/netclient-2, etc.
|
|
|
|
# alternatively "netclient join" can be run from inside the container for new networks
|
|
|
|
path: /etc/netclient
|
|
|
|
type: DirectoryOrCreate
|
2022-07-13 12:39:30 +08:00
|
|
|
name: etc-netclient
|