-
Notifications
You must be signed in to change notification settings - Fork 89
improve kubernetes doc (first iteration) #850
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
97934ae
move Traefik doc
sabban 7eae9e0
ingress nginx send metrics
sabban 516650a
kubernetes documentation revamp
sabban 017e2b5
docs(installation): clarify Helm requirement in Kubernetes setup
sabban b42e1c6
addd a word about database
sabban ca9c1d6
adjust traefik bouncer configuration
sabban 0406192
add trafik logo
sabban 9522a1c
indentation
sabban 2d357ef
improved docs
sabban a82fac7
typo
sabban 55a3dcd
fix links
sabban fe63bee
add newline for details
sabban abc6b30
typo
sabban 1b7656c
rollback
sabban 9b9bd00
Merge branch 'main' into helm/revamp
sabban 5c060bb
typo
sabban 7b1e94d
Merge branch 'main' of github.com:crowdsecurity/crowdsec-docs into he…
sabban 17ea5ac
Merge branch 'helm/revamp' of github.com:crowdsecurity/crowdsec-docs …
sabban File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| --- | ||
| id: traefik | ||
| title: Traefix | ||
| sidebar_position: 5 | ||
| --- | ||
|
|
||
| import Tabs from '@theme/Tabs'; | ||
| import TabItem from '@theme/TabItem'; | ||
| import useBaseUrl from '@docusaurus/useBaseUrl'; | ||
| import RemediationSupportBadges from '@site/src/components/remediation-support-badge'; | ||
|
|
||
|
|
||
| <p align="center"> | ||
| <img src={useBaseUrl('/img/traefik.logo.png')} alt="CrowdSec" title="CrowdSec" width="400" height="300" /> | ||
| </p> | ||
| <p align="center"> | ||
| <img src="https://img.shields.io/badge/build-pass-green"></img> | ||
| <img src="https://img.shields.io/badge/tests-pass-green"></img> | ||
| </p> | ||
| <p align="center"> | ||
| 📚 <a href="#installation/">Documentation</a> | ||
| 💠 <a href="https://hub.crowdsec.net">Hub</a> | ||
| 💬 <a href="https://discourse.crowdsec.net">Discourse </a> | ||
| </p> | ||
|
|
||
| <RemediationSupportBadges | ||
| Prometheus | ||
| /> | ||
|
|
||
| ### Traefik on kubernetes | ||
|
|
||
| Traefik expects a resource of "Middleware" type named "bouncer", which we will create now. | ||
|
|
||
| Here is bouncer-middleware.yaml: | ||
|
|
||
| ```yaml | ||
| apiVersion: traefik.io/v1alpha1 | ||
| kind: Middleware | ||
| metadata: | ||
| name: bouncer | ||
| namespace: traefik | ||
| spec: | ||
| plugin: | ||
| bouncer: | ||
| enabled: true | ||
| crowdsecMode: stream | ||
| crowdsecLapiScheme: https | ||
| crowdsecLapiHost: crowdsec-service.crowdsec:8080 | ||
| crowdsecLapiKey: mysecretkey12345 | ||
| ``` | ||
|
|
||
| You can see all the configuration options in the [bouncer documentation](https://plugins.traefik.io/plugins/6335346ca4caa9ddeffda116/crowdsec-bouncer-traefik-plugin). | ||
| You can also refer to a [full traefik and CrowdSec stack on kubernetes](https://raw.githubusercontent.com/maxlerebourg/crowdsec-bouncer-traefik-plugin/main/examples/kubernetes/README.md) | ||
|
|
||
| Now, you can install the remediation component: | ||
|
|
||
| ```bash | ||
| kubectl apply -f bouncer-middleware.yaml | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.