Skip to content

Commit 5895d39

Browse files
committed
add a side note about traefik plugin
1 parent b55dbcc commit 5895d39

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

crowdsec-docs/docs/appsec/quickstart/traefik.mdx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,22 @@ volumes:
441441
secretName: crowdsec-bouncer-key
442442
```
443443

444+
:::note
445+
The Traefik Helm chart uses a read-only root filesystem by default. The plugin loader needs a writable directory to cache downloaded plugins. Add an `emptyDir` volume for `/plugins-storage` alongside the secret volume above:
446+
447+
```yaml title="traefik-values.yaml (addition)"
448+
deployment:
449+
additionalVolumes:
450+
- name: plugins-storage
451+
emptyDir: {}
452+
additionalVolumeMounts:
453+
- name: plugins-storage
454+
mountPath: /plugins-storage
455+
```
456+
457+
Without this, Traefik will fail to start with `unable to create directory /plugins-storage/sources: read-only file system`.
458+
:::
459+
444460
Then create a Traefik Middleware resource:
445461

446462
```bash

0 commit comments

Comments
 (0)