netclient-template-doks-uspace.yaml 966 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. apiVersion: apps/v1
  2. kind: DaemonSet
  3. metadata:
  4. name: netclient-1
  5. labels:
  6. app: netclient-1
  7. spec:
  8. selector:
  9. matchLabels:
  10. app: netclient-1
  11. template:
  12. metadata:
  13. labels:
  14. app: netclient-1
  15. spec:
  16. hostNetwork: true
  17. containers:
  18. - name: netclient-1
  19. image: gravitl/netclient:0.9.2-doks-uspace
  20. env:
  21. - name: NETCLIENT_ROAMING
  22. value: "no"
  23. - name: NETCLIENT_PORT
  24. value: "51821"
  25. - name: NETCLIENT_IS_STATIC
  26. value: "yes"
  27. - name: NETCLIENT_ENDPOINT
  28. valueFrom:
  29. fieldRef:
  30. fieldPath: status.hostIP
  31. - name: TOKEN
  32. value: "<token>"
  33. volumeMounts:
  34. - mountPath: /etc/netclient
  35. name: etc-netclient
  36. securityContext:
  37. privileged: true
  38. volumes:
  39. - hostPath:
  40. path: /etc/netclient
  41. type: DirectoryOrCreate
  42. name: etc-netclient