You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traefik expects a resource of "Middleware" type named "bouncer", which we will create now.
33
+
34
+
Here is bouncer-middleware.yaml:
35
+
36
+
```yaml
37
+
apiVersion: traefik.io/v1alpha1
38
+
kind: Middleware
39
+
metadata:
40
+
name: bouncer
41
+
namespace: traefik
42
+
spec:
43
+
plugin:
44
+
bouncer:
45
+
enabled: true
46
+
crowdsecMode: stream
47
+
crowdsecLapiScheme: https
48
+
crowdsecLapiHost: crowdsec-service.crowdsec:8080
49
+
crowdsecLapiKey: mysecretkey12345
50
+
```
51
+
52
+
You can see all the configuration options in the [bouncer documentation](https://plugins.traefik.io/plugins/6335346ca4caa9ddeffda116/crowdsec-bouncer-traefik-plugin).
Copy file name to clipboardExpand all lines: crowdsec-docs/unversioned/getting_started/installation/kubernetes.mdx
-66Lines changed: 0 additions & 66 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -122,73 +122,7 @@ lapi:
122
122
Then, you can install the remediation component with the following command:
123
123
124
124
125
-
#### Traefik
126
125
127
-
Traefik expects a resource of "Middleware" type named "bouncer", which we will create now.
128
-
129
-
Here is bouncer-middleware.yaml:
130
-
131
-
```yaml
132
-
apiVersion: traefik.io/v1alpha1
133
-
kind: Middleware
134
-
metadata:
135
-
name: bouncer
136
-
namespace: traefik
137
-
spec:
138
-
plugin:
139
-
bouncer:
140
-
enabled: true
141
-
crowdsecMode: stream
142
-
crowdsecLapiScheme: https
143
-
crowdsecLapiHost: crowdsec-service.crowdsec:8080
144
-
crowdsecLapiKey: mysecretkey12345
145
-
```
146
-
147
-
You can see all the configuration options in the [bouncer documentation](https://plugins.traefik.io/plugins/6335346ca4caa9ddeffda116/crowdsec-bouncer-traefik-plugin).
148
-
149
-
Now, you can install the remediation component:
150
-
151
-
```bash
152
-
kubectl apply -f bouncer-middleware.yaml
153
-
```
154
-
155
-
#### Nginx
156
-
157
-
:::info
158
-
We supposed that you have already installed the Nginx ingress controller using this [helm chart](https://artifacthub.io/packages/helm/ingress-nginx/ingress-nginx).
159
-
:::
160
-
161
-
We need to patch ingress-nginx helm chart to add and enable [the crowdsec lua plugin](https://github.com/crowdsecurity/cs-openresty-bouncer).
162
-
You can put this configuration example in a file `crowdsec-ingress-nginx.yaml`:
0 commit comments