Skip to content

Commit

Permalink
[aws-cloudwatch-metrics] Add optional priorityClassName
Browse files Browse the repository at this point in the history
  • Loading branch information
kahirokunn committed Sep 11, 2022
1 parent 9c3a183 commit 2fd6d34
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions stable/aws-cloudwatch-metrics/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ spec:
{{- include "aws-cloudwatch-metrics.selectorLabels" . | nindent 8 }}
spec:
serviceAccountName: {{ include "aws-cloudwatch-metrics.serviceAccountName" . }}
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName }}
{{- end }}
hostNetwork: {{ .Values.hostNetwork }}
containers:
- name: {{ .Chart.Name }}
Expand Down
4 changes: 3 additions & 1 deletion stable/aws-cloudwatch-metrics/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,7 @@ tolerations: []
affinity: {}

# For bottlerocket OS (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContainerInsights-troubleshooting.html#ContainerInsights-troubleshooting-bottlerocket)
# containerdSockPath: /run/dockershim.sock
# containerdSockPath: /run/dockershim.sock
containerdSockPath: /run/containerd/containerd.sock

priorityClassName: system-node-critical

0 comments on commit 2fd6d34

Please sign in to comment.