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.

36 lines
1.1 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. containers:
  17. - name: netchecker-agent
  18. image: "{{ agent_img }}"
  19. env:
  20. - name: MY_POD_NAME
  21. valueFrom:
  22. fieldRef:
  23. fieldPath: metadata.name
  24. args:
  25. - "-v=5"
  26. - "-alsologtostderr=true"
  27. - "-serverendpoint=netchecker-service:8081"
  28. - "-reportinterval={{ agent_report_interval }}"
  29. imagePullPolicy: {{ k8s_image_pull_policy }}
  30. resources:
  31. limits:
  32. cpu: {{ netchecker_agent_cpu_limit }}
  33. memory: {{ netchecker_agent_memory_limit }}
  34. requests:
  35. cpu: {{ netchecker_agent_cpu_requests }}
  36. memory: {{ netchecker_agent_memory_requests }}