netclient.yaml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. ---
  2. apiVersion: apps/v1
  3. kind: Deployment
  4. metadata:
  5. name: netclient
  6. labels:
  7. app: netclient
  8. spec:
  9. selector:
  10. matchLabels:
  11. app: netclient
  12. replicas: 1
  13. template:
  14. metadata:
  15. labels:
  16. app: netclient
  17. spec:
  18. hostNetwork: true
  19. # affinity:
  20. # nodeAffinity:
  21. # preferredDuringSchedulingIgnoredDuringExecution:
  22. # - weight: 1
  23. # preference:
  24. # matchExpressions:
  25. # - key: <node label>
  26. # operator: In
  27. # values:
  28. # - "<node label value>"
  29. containers:
  30. - name: netclient
  31. image: gravitl/netclient:v0.25.0
  32. env:
  33. - name: TOKEN
  34. value: "TOKEN_VALUE"
  35. volumeMounts:
  36. - mountPath: /etc/netclient
  37. name: etc-netclient
  38. - mountPath: /var/log
  39. name: log-netclient
  40. securityContext:
  41. privileged: true
  42. volumes:
  43. - hostPath:
  44. path: /etc/netclient
  45. type: DirectoryOrCreate
  46. name: etc-netclient
  47. - emptyDir:
  48. medium: Memory
  49. name: log-netclient