configure postgresql for crowdsec
This commit is contained in:
@@ -29,6 +29,16 @@ crowdsec: &crowdsec_config
|
|||||||
value: "homelab"
|
value: "homelab"
|
||||||
- name: ENROLL_TAGS
|
- name: ENROLL_TAGS
|
||||||
value: "k3s rpi test"
|
value: "k3s rpi test"
|
||||||
|
- name: DB_USER
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: crowdsec-db-credentials
|
||||||
|
key: username
|
||||||
|
- name: DB_PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: crowdsec-db-credentials
|
||||||
|
key: password
|
||||||
appsec:
|
appsec:
|
||||||
enabled: true
|
enabled: true
|
||||||
acquisitions:
|
acquisitions:
|
||||||
@@ -48,6 +58,25 @@ crowdsec: &crowdsec_config
|
|||||||
requests:
|
requests:
|
||||||
cpu: "100m"
|
cpu: "100m"
|
||||||
memory: "200Mi"
|
memory: "200Mi"
|
||||||
|
config:
|
||||||
|
config.yaml.local: |
|
||||||
|
db_config:
|
||||||
|
type: postgresql
|
||||||
|
user: ${DB_USER}
|
||||||
|
password: ${DB_PASSWORD}
|
||||||
|
db_name: crowdsec
|
||||||
|
host: pgbouncer.tools
|
||||||
|
port: 5432
|
||||||
|
api:
|
||||||
|
server:
|
||||||
|
auto_registration: # Activate if not using TLS for authentication
|
||||||
|
enabled: true
|
||||||
|
token: "${REGISTRATION_TOKEN}" # /!\ do not change
|
||||||
|
allowed_ranges: # /!\ adapt to the pod IP ranges used by your cluster
|
||||||
|
- "127.0.0.1/32"
|
||||||
|
- "192.168.0.0/16"
|
||||||
|
- "10.42.0.0/16"
|
||||||
|
- "172.16.0.0/12"
|
||||||
|
|
||||||
tool:
|
tool:
|
||||||
# kind: 'SubChart' or 'HelmChart', if subchart then uncomment Chart.yaml dependency, else comment and use tool library with helm chart template
|
# kind: 'SubChart' or 'HelmChart', if subchart then uncomment Chart.yaml dependency, else comment and use tool library with helm chart template
|
||||||
|
|||||||
@@ -6,4 +6,5 @@ applications = [
|
|||||||
ops_policies = ["factory__cf_r2_arcodange_tf"]
|
ops_policies = ["factory__cf_r2_arcodange_tf"]
|
||||||
service_account_names = ["cloudflared"]
|
service_account_names = ["cloudflared"]
|
||||||
},
|
},
|
||||||
|
{ name = "crowdsec" },
|
||||||
]
|
]
|
||||||
Reference in New Issue
Block a user