Crowsec uses external LAPI.
This commit is contained in:
@@ -60,7 +60,7 @@ spec:
|
||||
- name: LEVEL_INFO
|
||||
value: "true"
|
||||
- name: AGENT_USERNAME
|
||||
value: "kubernetes-cluster"
|
||||
value: "{{ if .agentUsername }}{{ .agentUsername }}{{ else }}kubernetes-cluster{{ end }}"
|
||||
- name: AGENT_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
@@ -72,6 +72,12 @@ spec:
|
||||
name: crowdsec-secrets
|
||||
key: bouncerApiKey
|
||||
optional: true
|
||||
{{ if .centralLapiUrl }}
|
||||
- name: DISABLE_LOCAL_API
|
||||
value: "true"
|
||||
- name: LOCAL_API_URL
|
||||
value: "{{ .centralLapiUrl }}"
|
||||
{{ end }}
|
||||
ports:
|
||||
- name: lapi
|
||||
containerPort: 8080
|
||||
@@ -79,6 +85,7 @@ spec:
|
||||
- name: prometheus
|
||||
containerPort: 6060
|
||||
protocol: TCP
|
||||
{{ if not .centralLapiUrl }}
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
@@ -91,6 +98,7 @@ spec:
|
||||
port: 8080
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 10
|
||||
{{ end }}
|
||||
resources:
|
||||
requests:
|
||||
cpu: 50m
|
||||
|
||||
Reference in New Issue
Block a user