Skip to content

Commit 08668f4

Browse files
committed
update of the k8s documentation
1 parent 3f6fef7 commit 08668f4

File tree

1 file changed

+30
-12
lines changed

1 file changed

+30
-12
lines changed

crowdsec-docs/docs/configuration/values_parameters.md

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,19 @@ agent:
4949
program: nginx # Routes logs to nginx parsers
5050
poll_without_inotify: true
5151

52-
env:
53-
# Collections determine which parsers, scenarios, and postoverflows are installed.
54-
# Must match the log sources defined above.
55-
- name: COLLECTIONS
56-
value: crowdsecurity/postfix crowdsecurity/nginx
52+
# It's recommended to avoid putting passwords directly in the values.yaml file
53+
# for security reasons. Instead, consider using Kubernetes Secrets or environment
54+
# variables to manage sensitive information securely.
55+
env:
56+
# Collections determine which parsers, scenarios, and postoverflows are installed.
57+
# Must match the log sources defined above.
58+
- name: COLLECTIONS
59+
value: crowdsecurity/postfix crowdsecurity/nginx
5760

58-
# Enables verbose logs from the CrowdSec agent.
59-
# Useful for troubleshooting, but should be "false" in steady-state production.
60-
#- name: DEBUG
61-
# value: "true"
61+
# Enables verbose logs from the CrowdSec agent.
62+
# Useful for troubleshooting, but should be "false" in steady-state production.
63+
#- name: DEBUG
64+
# value: "true"
6265
tolerations:
6366
# Allows the agent pod to run on control-plane nodes.
6467
# Only keep this if those nodes also run workloads you want to monitor.
@@ -107,16 +110,31 @@ lapi:
107110
secretKeyRef:
108111
name: crowdsec-keys
109112
key: BOUNCER_KEY_ingress
113+
114+
# It's recommended to avoid putting passwords directly in the values.yaml file
115+
# for security reasons. Instead, consider using Kubernetes Secrets or environment
116+
# variables to manage sensitive information securely.
117+
- name: DB_PASSWORD
118+
valueFrom:
119+
secretKeyRef:
120+
name: database-secret
121+
key: DB_PASSWORD
122+
110123
# The following piece configuration under config.config.yaml.local is merged
111-
# alongside the current documentation
124+
# alongside the current conbfiguration. This mechanism allows
125+
# environment-specific overrides. This approach helps maintain
126+
# a clean and centralized configuration while enabling developers
127+
# to customize their local settings without modifying the primary
128+
# configuration files in pods with complex volumes and mount points.
129+
112130
config.config.yaml.local:
113131
# Using a database is strongly encouraged.
114132
db_config:
115133
type: postgresql
116134
user: crowdsec
117-
password: "<password>" # one can use a environment variable as well
135+
password: ${DB_PASSWORD}
118136
db_name: crowdsec
119-
host: databases-psql-rw.databases-crowdsec.svc
137+
host: <database-host>
120138
flush:
121139
bouncers_autodelete:
122140
api_key: 1h

0 commit comments

Comments
 (0)