Skip to content

Commit

Permalink
fix: Add priorityClass and maxUnavailable to sysdig-agent helm chart (#…
Browse files Browse the repository at this point in the history
…398)

* feat: Add priorityClass to sysdig helm chart

* feat: Configure maxUnavailable to 25% for sysdig-agent

* Change sysdig priority value to 999999

---------

Co-authored-by: Daniel Butler <[email protected]>
  • Loading branch information
kulmannf and daniel-butler-irl authored Oct 1, 2024
1 parent 07b6db3 commit 88a1002
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
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: 999999
preemptionPolicy: PreemptLowerPriority
globalDefault: false
description: "Sysdig Agent"

0 comments on commit 88a1002

Please sign in to comment.