policy.yaml.j2 1.2 KB

12345678910111213141516171819
  1. apiVersion: "descheduler/v1alpha1"
  2. kind: "DeschedulerPolicy"
  3. strategies:
  4. "RemoveDuplicates":
  5. enabled: {{ openshift_descheduler_strategies_dict['remove_duplicates'] | to_json }}
  6. "RemovePodsViolatingInterPodAntiAffinity":
  7. enabled: {{ openshift_descheduler_strategies_dict['remove_pods_violating_inter_pod_anti_affinity'] | to_json }}
  8. "LowNodeUtilization":
  9. enabled: {{ openshift_descheduler_strategies_dict['low_node_utilization'] | to_json }}
  10. params:
  11. nodeResourceUtilizationThresholds:
  12. thresholds:
  13. "cpu" : {{ openshift_descheduler_strategy_low_node_utilization_dict['cpu_threshold'] }}
  14. "memory": {{ openshift_descheduler_strategy_low_node_utilization_dict['mem_threshold'] }}
  15. "pods": {{ openshift_descheduler_strategy_low_node_utilization_dict['pods_threshold'] }}
  16. targetThresholds:
  17. "cpu" : {{ openshift_descheduler_strategy_low_node_utilization_dict['cpu_target_threshold'] }}
  18. "memory": {{ openshift_descheduler_strategy_low_node_utilization_dict['mem_target_threshold'] }}
  19. "pods": {{ openshift_descheduler_strategy_low_node_utilization_dict['pods_target_threshold'] }}