Skip to content
Snippets Groups Projects
Verified Commit 863bbc41 authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

fix(crowdsec): Switch to different patch system

parent 9d5114e2
No related branches found
No related tags found
No related merge requests found
......@@ -33,18 +33,25 @@ spec:
optional: true
postRenderers:
- kustomize:
patchesJson6902:
- target:
version: apps/v1
kind: DaemonSet
patchesStrategicMerge:
- kind: DaemonSet
apiVersion: apps/v1
metadata:
name: crowdsec-agent
patch:
- op: "add"
path: /spec/template/spec/initContainers/0/resources/limits/cpu
value: "100m"
- op: "replace"
path: /spec/template/spec/containers/0/securityContext/privileged
value: true
spec:
template:
spec:
initContainers:
- name: wait-for-lapi
resources:
limits:
cpu: "1"
containers:
- name: crowdsec-agent
# Required in order to run as Super-Privileged-Container and therefore accessing host resources
securityContext:
privileged: true
allowPrivilegeEscalation: true
---
apiVersion: v1
kind: ConfigMap
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment