Skip to content

Commit 273587f

Browse files
Adding priorityClassName to scalyr-agent daemonset. (#42)
Co-authored-by: Tomaz Muraus <[email protected]>
1 parent 67e9b6e commit 273587f

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ For agent changelog, please see <https://github.com/scalyr/scalyr-agent-2/blob/r
170170
| podAnnotations | object | `{}` | optional pod annotations |
171171
| podLabels | object | `{}` | optional arbitrary pod metadata labels |
172172
| podSecurityContext | object | `{}` | optional pod security context entries |
173+
| priorityClassName | string | `""` | optional pod priority class name to use for the scalyr-agent daemonset |
173174
| resources | object | `{"limits":{"cpu":"500m","memory":"500Mi"},"requests":{"cpu":"500m","memory":"500Mi"}}` | Pod resources. Defaults to the values documented in the official [Installation guide](https://app.scalyr.com/help/install-agent-kubernetes) |
174175
| scalyr.apiKey | string | `""` | The Scalyr API key to use |
175176
| scalyr.base64Config | bool | `true` | As Helm is currently [unable to correctly pass JSON strings](https://github.com/helm/helm/issues/5618), this can be set to true so all values of scalyr.config are expected to be base64 encoded and will be decoded in the chart |

charts/scalyr-agent/templates/daemonset.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ spec:
3030
{{- end }}
3131
securityContext:
3232
{{- toYaml .Values.podSecurityContext | nindent 8 }}
33+
{{- if .Values.scalyr.priorityClassName }}
34+
priorityClassName: {{ .Values.scalyr.priorityClassName }}
35+
{{- end }}
3336
volumes:
3437
{{- if or (.Values.scalyr.k8s.enableMetrics) (.Values.scalyr.k8s.enableLogs) }}
3538
- name: "varlibdockercontainers"

charts/scalyr-agent/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ scalyr:
3535
# NOTE: If you want this debug log file to be ingested into Scalyr, you also need to set
3636
# scalyr.ingestDebugLog option to true.
3737
debugLevel: 0
38+
# Pod priority class name to use for the scalyr-agent daemonset. Optional.
39+
priorityClassName: ""
3840
# scalyr.ingestDebugLog -- Set this to true to enable ingesting of agent_debug.log file. Keep in
3941
# mind that depending on the debug log level set, this may result in large log volume.
4042
ingestDebugLog: false

0 commit comments

Comments
 (0)