Skip to content
Merged
Changes from all 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
22 changes: 22 additions & 0 deletions charts/base-cluster/templates/monitoring/kdave/kdave.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,24 @@ spec:
dependsOn:
- name: kube-prometheus-stack
namespace: monitoring
postRenderers:
- kustomize:
patches:
- target:
kind: Deployment
patch: |
- op: add
path: /spec/template/spec/containers/0/securityContext
Comment thread
cwrau marked this conversation as resolved.
value:
runAsNonRoot: true
runAsUser: 1003
runAsGroup: 1003
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
seccompProfile:
type: RuntimeDefault
Comment thread
cwrau marked this conversation as resolved.
values:
helmBinary: helm3
image:
Expand All @@ -29,6 +47,10 @@ spec:
pspEnabled: false
apiVersionsInspector:
enabled: false
securityContext:
runAsNonRoot: true
Comment thread
cwrau marked this conversation as resolved.
seccompProfile:
type: RuntimeDefault
---
{{- include "base-cluster.helm.resourceWithDependencies" (dict "name" "kdave-servicemonitor" "resource" (include "base-cluster.kdave.serviceMonitor" (dict "context" .)) "dependencies" (dict "monitoring" "kube-prometheus-stack") "context" $ "additionalLabels" (dict "app.kubernetes.io/component" "kdave")) | nindent 0 }}
{{- end -}}
Expand Down