mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-14 21:57:49 +08:00
34 lines
861 B
YAML
34 lines
861 B
YAML
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
|
|
image: gravitl/netclient-go:v0.15.2
|
|
env:
|
|
- name: TOKEN
|
|
value: "TOKEN_VALUE"
|
|
volumeMounts:
|
|
- mountPath: /etc/netclient
|
|
name: etc-netclient
|
|
securityContext:
|
|
privileged: true
|
|
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
|
|
name: etc-netclient
|