netclient-daemonset.yaml 989 B

123456789101112131415161718192021222324252627282930313233343536373839
  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:v0.30.0
  20. env:
  21. - name: TOKEN
  22. value: "TOKEN_VALUE"
  23. volumeMounts:
  24. - mountPath: /etc/netclient
  25. name: etc-netclient
  26. - mountPath: /var/log
  27. name: log-netclient
  28. securityContext:
  29. privileged: true
  30. volumes:
  31. - hostPath:
  32. # change path for every netclient deployed, e.g. /etc/netclient-1, /etc/netclient-2, etc.
  33. # alternatively "netclient join" can be run from inside the container for new networks
  34. path: /etc/netclient
  35. type: DirectoryOrCreate
  36. name: etc-netclient
  37. - emptyDir:
  38. medium: Memory
  39. name: log-netclient