Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
mloiseleur committed Nov 6, 2024
1 parent d72ed20 commit bee2cc9
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions EXAMPLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -463,18 +463,30 @@ ports:
# Using plugins

This chart follows common security practices: it runs as non-root with a readonly root filesystem.
When enabling a plugin which needs storage, you have to add it to the deployment.
When enabling a plugin, this Chart provides by default an `emptyDir` for plugin storage.

To ease plugins usage and fit most common use cases, a plugin storage (`emptyDir`) is added by default.

Here is a simple example with crowdsec. You may want to replace with your plugin or see complete exemple on crowdsec [here](https://github.com/maxlerebourg/crowdsec-bouncer-traefik-plugin/blob/main/examples/kubernetes/README.md).
Here is an example with [crowdsec](https://github.com/maxlerebourg/crowdsec-bouncer-traefik-plugin/blob/main/examples/kubernetes/README.md) plugin:

```yaml
experimental:
plugins:
demo:
moduleName: github.com/maxlerebourg/crowdsec-bouncer-traefik-plugin
version: v1.1.9
demo:
moduleName: github.com/maxlerebourg/crowdsec-bouncer-traefik-plugin
version: v1.3.5
```

When persistence is needed, this `emptyDir` can be replaced with a PVC:

```yaml
deployment:
additionalVolumes:
- name: plugins
additionalVolumeMounts:
- name: plugins
mountPath: /plugins-storage
additionalArguments:
- "--experimental.plugins.bouncer.moduleName=github.com/maxlerebourg/crowdsec-bouncer-traefik-plugin"
- "--experimental.plugins.bouncer.version=v1.3.5"
```

# Use Traefik native Let's Encrypt integration, without cert-manager
Expand Down

0 comments on commit bee2cc9

Please sign in to comment.