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.

39 lines
1.2 KiB

  1. apiVersion: extensions/v1beta1
  2. kind: DaemonSet
  3. metadata:
  4. labels:
  5. app: netchecker-agent-hostnet
  6. name: netchecker-agent-hostnet
  7. namespace: {{ netcheck_namespace }}
  8. spec:
  9. template:
  10. metadata:
  11. name: netchecker-agent-hostnet
  12. labels:
  13. app: netchecker-agent-hostnet
  14. spec:
  15. hostNetwork: True
  16. {% if kube_version | version_compare('v1.6', '>=') %}
  17. dnsPolicy: ClusterFirstWithHostNet
  18. {% endif %}
  19. containers:
  20. - name: netchecker-agent
  21. image: "{{ agent_img }}"
  22. env:
  23. - name: MY_POD_NAME
  24. valueFrom:
  25. fieldRef:
  26. fieldPath: metadata.name
  27. args:
  28. - "-v=5"
  29. - "-alsologtostderr=true"
  30. - "-serverendpoint=netchecker-service:8081"
  31. - "-reportinterval={{ agent_report_interval }}"
  32. imagePullPolicy: {{ k8s_image_pull_policy }}
  33. resources:
  34. limits:
  35. cpu: {{ netchecker_agent_cpu_limit }}
  36. memory: {{ netchecker_agent_memory_limit }}
  37. requests:
  38. cpu: {{ netchecker_agent_cpu_requests }}
  39. memory: {{ netchecker_agent_memory_requests }}