Skip to content

Commit d5712f7

Browse files
highpingblorghighpingblorg
authored andcommitted
Add appsec.ports
1 parent e901df9 commit d5712f7

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

charts/crowdsec/templates/appsec-deployment.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,13 @@ spec:
154154
{{- end }}
155155
resources:
156156
{{- toYaml .Values.appsec.resources | nindent 10 }}
157+
{{- if or .Values.appsec.ports .Values.appsec.metrics.enabled }}
157158
ports:
158-
- name: appsec
159-
containerPort: 7422
160-
protocol: TCP
161-
{{- if .Values.appsec.metrics.enabled }}
159+
{{- end }}
160+
{{- with .Values.appsec.ports }}
161+
{{- toYaml . | nindent 10 }}
162+
{{- end }}
163+
{{ if .Values.appsec.metrics.enabled }}
162164
- name: metrics
163165
containerPort: 6060
164166
protocol: TCP

charts/crowdsec/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,11 @@ appsec:
702702
strategy:
703703
type: Recreate
704704

705+
ports:
706+
# -- add your custom ports here, by default we expose port 6060 for metrics if metrics is enabled
707+
- name: appsec
708+
containerPort: 7422
709+
protocol: TCP
705710
# -- Additional acquisitions for AppSec
706711
## @param appsec.acquisitions [array] AppSec acquisitions (datasource listeners), e.g. appsec listener on 7422
707712
acquisitions: []

0 commit comments

Comments
 (0)