diff --git a/helm_chart/HyperPodHelmChart/charts/health-monitoring-agent/templates/health-monitoring-agent.yaml b/helm_chart/HyperPodHelmChart/charts/health-monitoring-agent/templates/health-monitoring-agent.yaml index 301548a0..2d5a430a 100644 --- a/helm_chart/HyperPodHelmChart/charts/health-monitoring-agent/templates/health-monitoring-agent.yaml +++ b/helm_chart/HyperPodHelmChart/charts/health-monitoring-agent/templates/health-monitoring-agent.yaml @@ -159,6 +159,7 @@ spec: - name: localtime mountPath: /etc/localtime readOnly: true + priorityClassName: {{ .Values.priorityClassName | default "system-node-critical" }} serviceAccountName: health-monitoring-agent volumes: - name: log @@ -250,6 +251,7 @@ spec: - name: localtime mountPath: /etc/localtime readOnly: true + priorityClassName: {{ .Values.priorityClassName | default "system-node-critical" }} serviceAccountName: health-monitoring-agent volumes: - name: log diff --git a/helm_chart/HyperPodHelmChart/charts/health-monitoring-agent/values.yaml b/helm_chart/HyperPodHelmChart/charts/health-monitoring-agent/values.yaml index 5ead265e..c666b40a 100644 --- a/helm_chart/HyperPodHelmChart/charts/health-monitoring-agent/values.yaml +++ b/helm_chart/HyperPodHelmChart/charts/health-monitoring-agent/values.yaml @@ -30,3 +30,8 @@ hmaimage: "" # Enable debug output for region selection process debug: true + +# PriorityClass for the HMA DaemonSet pods. +# system-node-critical ensures HMA is the last pod evicted under node pressure +# (e.g. DiskPressure), preventing loss of health monitoring. See P438078245. +priorityClassName: system-node-critical