You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.4 KiB

  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: netchecker-server
  5. namespace: {{ netcheck_namespace }}
  6. labels:
  7. app: netchecker-server
  8. spec:
  9. replicas: 1
  10. selector:
  11. matchLabels:
  12. app: netchecker-server
  13. template:
  14. metadata:
  15. name: netchecker-server
  16. labels:
  17. app: netchecker-server
  18. spec:
  19. priorityClassName: {% if netcheck_namespace == 'kube-system' %}system-cluster-critical{% else %}k8s-cluster-critical{% endif %}{{''}}
  20. containers:
  21. - name: netchecker-server
  22. image: "{{ netcheck_server_image_repo }}:{{ netcheck_server_image_tag }}"
  23. imagePullPolicy: {{ k8s_image_pull_policy }}
  24. resources:
  25. limits:
  26. cpu: {{ netchecker_server_cpu_limit }}
  27. memory: {{ netchecker_server_memory_limit }}
  28. requests:
  29. cpu: {{ netchecker_server_cpu_requests }}
  30. memory: {{ netchecker_server_memory_requests }}
  31. securityContext:
  32. runAsUser: {{ netchecker_server_user | default('0') }}
  33. runAsGroup: {{ netchecker_server_group | default('0') }}
  34. ports:
  35. - containerPort: 8081
  36. args:
  37. - "-v=5"
  38. - "-logtostderr"
  39. - "-kubeproxyinit"
  40. - "-endpoint=0.0.0.0:8081"
  41. tolerations:
  42. - effect: NoSchedule
  43. operator: Exists
  44. serviceAccountName: netchecker-server