Skip to content

Commit 88a1002

Browse files
fix: Add priorityClass and maxUnavailable to sysdig-agent helm chart (#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]>
1 parent 07b6db3 commit 88a1002

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

chart/sysdig-agent/templates/daemonset.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ spec:
1616
app: "{{ .Values.metadata.name }}"
1717
updateStrategy:
1818
type: RollingUpdate
19+
rollingUpdate:
20+
maxUnavailable: 25%
1921
template:
2022
metadata:
2123
labels:
@@ -86,6 +88,7 @@ spec:
8688
{{- end}}
8789
# The following line is necessary for RBAC
8890
serviceAccountName: "{{ .Values.metadata.name }}"
91+
priorityClassName: "{{ .Values.metadata.name }}-ds-priority"
8992
terminationGracePeriodSeconds: 5
9093
containers:
9194
- name: "{{ .Values.metadata.name }}"
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
apiVersion: scheduling.k8s.io/v1
2+
kind: PriorityClass
3+
metadata:
4+
name: "{{ .Values.metadata.name }}-ds-priority"
5+
namespace: {{ .Release.Namespace }}
6+
value: 999999
7+
preemptionPolicy: PreemptLowerPriority
8+
globalDefault: false
9+
description: "Sysdig Agent"

0 commit comments

Comments
 (0)