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.

42 lines
1.4 KiB

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