Skip to content

Commit b42e1c6

Browse files
committed
addd a word about database
1 parent 017e2b5 commit b42e1c6

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

crowdsec-docs/unversioned/getting_started/installation/kubernetes.mdx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,28 @@ lapi:
121121
```
122122
:::
123123
124+
### A word about databases
125+
126+
By default, CrowdSec uses a SQLite database, which does not support replication.
127+
In a Kubernetes environment, this limitation prevents the Local API from being
128+
replicated.
129+
130+
For production deployments on Kubernetes, we recommend using a database engine
131+
that can be deployed in a replicated or highly available way, such as MariaDB or
132+
PostgreSQL. You can leverage existing operators to manage these databases:
133+
* [mariadb operator](https://mariadb.com/resources/blog/get-started-with-mariadb-in-kubernetes-and-mariadb-operator/)
134+
* [postgresql operator](https://github.com/cloudnative-pg/cloudnative-pg)
135+
136+
Configuration those databases is out of scope of this documentation.
137+
<!-- We want to create blogpost where we do it -->
138+
139+
:::warning
140+
141+
SQLite may be suitable for testing or low traffic clusters, but it is not
142+
recommended for Kubernetes production deployments. Besides the lack of
143+
replication, SQLite can also become a performance bottleneck under heavy load.
144+
145+
:::
124146
125147
## Next Steps?
126148

0 commit comments

Comments
 (0)