diff --git a/docs/content/en/docs/examples/modsecurity.md b/docs/content/en/docs/examples/modsecurity.md index 7c6425f55..e95f3dc74 100644 --- a/docs/content/en/docs/examples/modsecurity.md +++ b/docs/content/en/docs/examples/modsecurity.md @@ -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: diff --git a/docs/static/resources/modsecurity-deployment-auditlog-sidecar.yaml b/docs/static/resources/modsecurity-deployment-auditlog-sidecar.yaml index f5b3cb7a5..8f11ef186 100644 --- a/docs/static/resources/modsecurity-deployment-auditlog-sidecar.yaml +++ b/docs/static/resources/modsecurity-deployment-auditlog-sidecar.yaml @@ -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 diff --git a/docs/static/resources/modsecurity-deployment.yaml b/docs/static/resources/modsecurity-deployment.yaml index 10835786c..a5bdcc644 100644 --- a/docs/static/resources/modsecurity-deployment.yaml +++ b/docs/static/resources/modsecurity-deployment.yaml @@ -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