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.

32 lines
929 B

  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. - name: REPORT_INTERVAL
  24. value: '{{ agent_report_interval }}'
  25. imagePullPolicy: {{ k8s_image_pull_policy }}
  26. resources:
  27. limits:
  28. cpu: {{ netchecker_agent_cpu_limit }}
  29. memory: {{ netchecker_agent_memory_limit }}
  30. requests:
  31. cpu: {{ netchecker_agent_cpu_requests }}
  32. memory: {{ netchecker_agent_memory_requests }}