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.

38 lines
1.0 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. containers:
  15. - name: netchecker-server
  16. image: "{{ server_img }}"
  17. env:
  18. imagePullPolicy: {{ k8s_image_pull_policy }}
  19. resources:
  20. limits:
  21. cpu: {{ netchecker_server_cpu_limit }}
  22. memory: {{ netchecker_server_memory_limit }}
  23. requests:
  24. cpu: {{ netchecker_server_cpu_requests }}
  25. memory: {{ netchecker_server_memory_requests }}
  26. ports:
  27. - containerPort: 8081
  28. args:
  29. - "-v=5"
  30. - "-logtostderr"
  31. - "-kubeproxyinit"
  32. - "-endpoint=0.0.0.0:8081"
  33. tolerations:
  34. - effect: NoSchedule
  35. operator: Exists
  36. {% if rbac_enabled %}
  37. serviceAccountName: netchecker-server
  38. {% endif %}