File tree Expand file tree Collapse file tree
crowdsec-docs/docs/configuration Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -120,14 +120,35 @@ lapi:
120120 name : database-secret
121121 key : DB_PASSWORD
122122
123+ # persistentVolume in kubernetes for CrowdSec data and configuration is now
124+ # discouraged in favor of a database and direct configuration through
125+ # values
126+ persistentVolume :
127+ data :
128+ enabled : false
129+ config :
130+ enabled : false
131+
123132 # The following piece configuration under config.config.yaml.local is merged
124133 # alongside the current conbfiguration. This mechanism allows
125134 # environment-specific overrides. This approach helps maintain
126135 # a clean and centralized configuration while enabling developers
127136 # to customize their local settings without modifying the primary
128137 # configuration files in pods with complex volumes and mount points.
129138
130- config.config.yaml.local :
139+ config :
140+ config.yaml.local : |
141+ # This is needed for agent autoregistration
142+ api:
143+ server:
144+ auto_registration: # Activate if not using TLS for authentication
145+ enabled: true
146+ token: "${REGISTRATION_TOKEN}" # /!\ Do not modify this variable (auto-generated and handled by the chart)
147+ allowed_ranges: # /!\ Make sure to adapt to the pod IP ranges used by your cluster
148+ - "127.0.0.1/32"
149+ - "192.168.0.0/16"
150+ - "10.0.0.0/8"
151+ - "172.16.0.0/12"
131152 # Using a database is strongly encouraged.
132153 db_config:
133154 type: postgresql
@@ -140,15 +161,6 @@ lapi:
140161 api_key: 1h
141162 agents_autodelete:
142163 login_password: 1h
143-
144- # persistentVolume in kubernetes for CrowdSec data and configuration is now
145- # discouragfe in favor of a database and direct configuration through
146- # values
147- persistentVolume :
148- data :
149- enabled : false
150- config :
151- enabled : false
152164` ` `
153165
154166# Values parameters reference
You can’t perform that action at this time.
0 commit comments