Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add modsec resource limits to controls V2 memory consumption #841

Merged
merged 2 commits into from
Aug 30, 2021
Merged
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions docs/content/en/docs/examples/modsecurity.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ $ kubectl create -f https://haproxy-ingress.github.io/resources/modsecurity-depl
deployment.apps/modsecurity-spoa created
```

{{% alert title="Note" %}}
This deployment configures a small amount of requests and limits resources,
remember to adjust them before moving to production.
{{% /alert %}}


Check if the agent is up and running:

Expand Down
15 changes: 15 additions & 0 deletions docs/static/resources/modsecurity-deployment-auditlog-sidecar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,21 @@ spec:
- containerPort: 12345
name: spop
protocol: TCP
resources:
limits:
cpu: 200m
memory: 150Mi
requests:
cpu: 200m
memory: 150Mi
livenessProbe:
failureThreshold: 3
initialDelaySeconds: 30
periodSeconds: 5
successThreshold: 1
tcpSocket:
port: 12345
timeoutSeconds: 4
volumeMounts:
- name: varlog
mountPath: /var/log
Expand Down
15 changes: 15 additions & 0 deletions docs/static/resources/modsecurity-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,18 @@ spec:
- containerPort: 12345
name: spop
protocol: TCP
resources:
limits:
cpu: 200m
memory: 150Mi
requests:
cpu: 200m
memory: 150Mi
livenessProbe:
failureThreshold: 3
initialDelaySeconds: 30
periodSeconds: 5
successThreshold: 1
tcpSocket:
port: 12345
timeoutSeconds: 4