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: ...@@ -33,18 +33,25 @@ spec:
optional: true optional: true
postRenderers: postRenderers:
- kustomize: - kustomize:
patchesJson6902: patchesStrategicMerge:
- target: - kind: DaemonSet
version: apps/v1 apiVersion: apps/v1
kind: DaemonSet metadata:
name: crowdsec-agent name: crowdsec-agent
patch: spec:
- op: "add" template:
path: /spec/template/spec/initContainers/0/resources/limits/cpu spec:
value: "100m" initContainers:
- op: "replace" - name: wait-for-lapi
path: /spec/template/spec/containers/0/securityContext/privileged resources:
value: true 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 apiVersion: v1
kind: ConfigMap 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