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.

35 lines
1.0 KiB

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