Skip to content

Commit

Permalink
Merge pull request #335 from fzipi/docs/add-k8s-config-tip
Browse files Browse the repository at this point in the history
docs: add k8s errors
  • Loading branch information
theseion authored Feb 16, 2025
2 parents 094c358 + 1edc44a commit 016e130
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -441,3 +441,29 @@ docker run \
-e BACKEND="http://localhost:8081" \
owasp/modsecurity-crs:apache
```

## Kubernetes

:warning: If you see this error in your k8s deployment logs:

```
...
/docker-entrypoint.d/20-envsubst-on-templates.sh: 53: envsubst: Argument list too long
```

This happens because kubernetes is injecting service related environment variables. Adding `enableServiceLinks: false` in your pod spec, solves the problem:

```yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-deployment
spec:
replicas: 1
template:
spec:
enableServiceLinks: false
containers:
- name: my-container
image: owasp/modsecurity-crs:4.8.0-nginx-202411071011
```

0 comments on commit 016e130

Please sign in to comment.