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.

46 lines
1.3 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. tolerations:
  16. - effect: NoSchedule
  17. operator: Exists
  18. containers:
  19. - name: netchecker-agent
  20. image: "{{ agent_img }}"
  21. env:
  22. - name: MY_POD_NAME
  23. valueFrom:
  24. fieldRef:
  25. fieldPath: metadata.name
  26. - name: MY_NODE_NAME
  27. valueFrom:
  28. fieldRef:
  29. fieldPath: spec.nodeName
  30. args:
  31. - "-v=5"
  32. - "-alsologtostderr=true"
  33. - "-serverendpoint=netchecker-service:8081"
  34. - "-reportinterval={{ agent_report_interval }}"
  35. imagePullPolicy: {{ k8s_image_pull_policy }}
  36. resources:
  37. limits:
  38. cpu: {{ netchecker_agent_cpu_limit }}
  39. memory: {{ netchecker_agent_memory_limit }}
  40. requests:
  41. cpu: {{ netchecker_agent_cpu_requests }}
  42. memory: {{ netchecker_agent_memory_requests }}
  43. updateStrategy:
  44. rollingUpdate:
  45. maxUnavailable: 100%
  46. type: RollingUpdate