Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions charts/crowdsec/templates/lapi-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,11 @@ spec:
containerPort: 6060
protocol: TCP
{{- end }}
{{ if .Values.lapi.persistentVolume.config.enabled }}
{{- if .Values.lapi.command }}
command: {{ toYaml .Values.lapi.command }}
{{- else if .Values.lapi.persistentVolume.config.enabled }}
command: ['sh', '-c', 'cp -nR /staging/etc/crowdsec/* /etc/crowdsec_data/ && ln -s /etc/crowdsec_data /etc/crowdsec && bash /docker_start.sh']
{{ end }}
{{- end }}
{{- if .Values.lapi.lifecycle }}
lifecycle:
{{- toYaml .Values.lapi.lifecycle | nindent 10 }}
Expand Down Expand Up @@ -315,6 +317,9 @@ spec:
{{- toYaml . | nindent 10 }}
{{- end }}

{{- end }}
{{- if .Values.lapi.extraContainers }}
{{- toYaml .Values.lapi.extraContainers | nindent 6 }}
{{- end }}
terminationGracePeriodSeconds: 30
volumes:
Expand Down
7 changes: 6 additions & 1 deletion charts/crowdsec/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,12 @@ lapi:
# -- Extra init containers to be added to lapi pods
extraInitContainers: []

# -- Extra containers to be added to lapi pods (sidecars)
extraContainers: []

# -- Custom command to override default container command. If not set, uses default behavior based on persistent volume config
command: []

# -- Extra volumes to be added to lapi pods
extraVolumes: []

Expand Down Expand Up @@ -302,7 +308,6 @@ lapi:
storageClassName: ""
existingClaim: ""
size: 100Mi

service:
type: ClusterIP
labels: {}
Expand Down