diff --git a/charts/amazon-cloudwatch-observability/templates/linux/cloudwatch-agent-daemonset.yaml b/charts/amazon-cloudwatch-observability/templates/linux/cloudwatch-agent-daemonset.yaml index 5b330a6..33d6786 100644 --- a/charts/amazon-cloudwatch-observability/templates/linux/cloudwatch-agent-daemonset.yaml +++ b/charts/amazon-cloudwatch-observability/templates/linux/cloudwatch-agent-daemonset.yaml @@ -30,6 +30,7 @@ spec: nodeSelector: kubernetes.io/os: linux serviceAccount: {{ template "cloudwatch-agent.serviceAccountName" . }} + priorityClassName: {{ .Values.agent.priorityClassName }} affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: diff --git a/charts/amazon-cloudwatch-observability/templates/linux/fluent-bit-daemonset.yaml b/charts/amazon-cloudwatch-observability/templates/linux/fluent-bit-daemonset.yaml index 5d1eb54..3e54742 100644 --- a/charts/amazon-cloudwatch-observability/templates/linux/fluent-bit-daemonset.yaml +++ b/charts/amazon-cloudwatch-observability/templates/linux/fluent-bit-daemonset.yaml @@ -71,6 +71,7 @@ spec: terminationGracePeriodSeconds: 10 hostNetwork: true dnsPolicy: ClusterFirstWithHostNet + priorityClassName: {{ .Values.containerLogs.fluentBit.priorityClassName }} volumes: - name: fluentbitstate hostPath: diff --git a/charts/amazon-cloudwatch-observability/templates/windows/cloudwatch-agent-windows-daemonset.yaml b/charts/amazon-cloudwatch-observability/templates/windows/cloudwatch-agent-windows-daemonset.yaml index 440af39..8702a75 100644 --- a/charts/amazon-cloudwatch-observability/templates/windows/cloudwatch-agent-windows-daemonset.yaml +++ b/charts/amazon-cloudwatch-observability/templates/windows/cloudwatch-agent-windows-daemonset.yaml @@ -16,6 +16,7 @@ spec: workingDir: "%CONTAINER_SANDBOX_MOUNT_POINT%\\Program Files\\Amazon\\AmazonCloudWatchAgent" mode: daemonset serviceAccount: {{ template "cloudwatch-agent.serviceAccountName" . }} + priorityClassName: {{ .Values.agent.priorityClassName }} nodeSelector: kubernetes.io/os: windows config: {{ .Values.agent.windowsDefaultConfig | toJson | quote }} diff --git a/charts/amazon-cloudwatch-observability/templates/windows/fluent-bit-windows-daemonset.yaml b/charts/amazon-cloudwatch-observability/templates/windows/fluent-bit-windows-daemonset.yaml index f475a13..7853649 100644 --- a/charts/amazon-cloudwatch-observability/templates/windows/fluent-bit-windows-daemonset.yaml +++ b/charts/amazon-cloudwatch-observability/templates/windows/fluent-bit-windows-daemonset.yaml @@ -28,6 +28,7 @@ spec: hostProcess: true runAsUserName: "NT AUTHORITY\\System" hostNetwork: true + priorityClassName: {{ .Values.containerLogs.fluentBit.priorityClassName }} nodeSelector: kubernetes.io/os: windows containers: diff --git a/charts/amazon-cloudwatch-observability/values.yaml b/charts/amazon-cloudwatch-observability/values.yaml index 0ab7187..ffa03de 100644 --- a/charts/amazon-cloudwatch-observability/values.yaml +++ b/charts/amazon-cloudwatch-observability/values.yaml @@ -50,6 +50,7 @@ containerLogs: requests: cpu: 50m memory: 25Mi + priorityClassName: "" config: service: | [SERVICE] @@ -513,6 +514,7 @@ agent: us-gov-east-1: 743662458514.dkr.ecr.us-gov-east-1.amazonaws.com us-gov-west-1: 743662458514.dkr.ecr.us-gov-west-1.amazonaws.com enabled: true + priorityClassName: "" resources: requests: memory: "128Mi" @@ -624,4 +626,4 @@ neuronMonitor: capabilities: add: ["SYS_ADMIN"] serviceAccount: - name: # override exporter service account name \ No newline at end of file + name: # override exporter service account name