netclient-daemonset.yaml 861 B

12345678910111213141516171819202122232425262728293031323334
  1. apiVersion: apps/v1
  2. kind: DaemonSet
  3. metadata:
  4. name: netclient
  5. labels:
  6. app: netclient
  7. spec:
  8. selector:
  9. matchLabels:
  10. app: netclient
  11. template:
  12. metadata:
  13. labels:
  14. app: netclient
  15. spec:
  16. hostNetwork: true
  17. containers:
  18. - name: netclient
  19. image: gravitl/netclient-go:v0.14.6
  20. env:
  21. - name: TOKEN
  22. value: "TOKEN_VALUE"
  23. volumeMounts:
  24. - mountPath: /etc/netclient
  25. name: etc-netclient
  26. securityContext:
  27. privileged: true
  28. volumes:
  29. - hostPath:
  30. # change path for every netclient deployed, e.g. /etc/netclient-1, /etc/netclient-2, etc.
  31. # alternatively "netclient join" can be run from inside the container for new networks
  32. path: /etc/netclient
  33. type: DirectoryOrCreate
  34. name: etc-netclient