Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions chart/sysdig-agent/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ spec:
app: "{{ .Values.metadata.name }}"
updateStrategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 25%
template:
metadata:
labels:
Expand Down Expand Up @@ -86,6 +88,7 @@ spec:
{{- end}}
# The following line is necessary for RBAC
serviceAccountName: "{{ .Values.metadata.name }}"
priorityClassName: "{{ .Values.metadata.name }}-ds-priority"
terminationGracePeriodSeconds: 5
containers:
- name: "{{ .Values.metadata.name }}"
Expand Down
9 changes: 9 additions & 0 deletions chart/sysdig-agent/templates/priorityclass.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
name: "{{ .Values.metadata.name }}-ds-priority"
namespace: {{ .Release.Namespace }}
value: 1000000
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think the priority should be lower than logging so any errors are logged? Maybe it doesn't matter?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good question and I was not sure myself about the correct priority. I'm fine with lowering it a bit

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shemau any thoughts here?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kulmannf I think set it to 999999 so it's right after logs priority-wise. It probably doesn't make too much of a difference anyway

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@daniel-butler-irl Updated the value to 999999

preemptionPolicy: PreemptLowerPriority
globalDefault: false
description: "Sysdig Agent"