Skip to content

Commit

Permalink
feat(fluent-bit): set system-node-critical as a default priorityClass (
Browse files Browse the repository at this point in the history
  • Loading branch information
m00lecule authored Dec 17, 2024
1 parent ef153a9 commit dc0552a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ spec:
nodeSelector:
kubernetes.io/os: linux
serviceAccount: {{ template "cloudwatch-agent.serviceAccountName" . }}
priorityClassName: {{ .Values.agent.priorityClassName }}
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ spec:
terminationGracePeriodSeconds: 10
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
priorityClassName: {{ .Values.containerLogs.fluentBit.priorityClassName }}
volumes:
- name: fluentbitstate
hostPath:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ spec:
image: {{ template "cloudwatch-agent.image" . }}
mode: daemonset
serviceAccount: {{ template "cloudwatch-agent.serviceAccountName" . }}
priorityClassName: {{ .Values.agent.priorityClassName }}
nodeSelector:
kubernetes.io/os: windows
config: {{ include "cloudwatch-agent.modify-config" (merge (dict "Config" $config) .) }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ spec:
hostProcess: true
runAsUserName: "NT AUTHORITY\\System"
hostNetwork: true
priorityClassName: {{ .Values.containerLogs.fluentBit.priorityClassName }}
nodeSelector:
kubernetes.io/os: windows
containers:
Expand Down
2 changes: 2 additions & 0 deletions charts/amazon-cloudwatch-observability/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ containerLogs:
requests:
cpu: 50m
memory: 25Mi
priorityClassName: ""
config:
service: |
[SERVICE]
Expand Down Expand Up @@ -1197,6 +1198,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"
Expand Down

0 comments on commit dc0552a

Please sign in to comment.