netclient.yaml 1001 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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.17.1
  32. env:
  33. - name: TOKEN
  34. value: "TOKEN_VALUE"
  35. volumeMounts:
  36. - mountPath: /etc/netclient
  37. name: etc-netclient
  38. securityContext:
  39. privileged: true
  40. volumes:
  41. - hostPath:
  42. path: /etc/netclient
  43. type: DirectoryOrCreate
  44. name: etc-netclient