Skip to content

Commit

Permalink
Merge pull request #56 from keliansb/main
Browse files Browse the repository at this point in the history
Add externalTrafficPolicy setting to services
  • Loading branch information
he2ss authored Sep 14, 2022
2 parents 1d012a3 + 7ccbee4 commit 7b38997
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/crowdsec/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.5.0
version: 0.6.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
3 changes: 3 additions & 0 deletions charts/crowdsec/templates/agent-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ spec:
externalIPs:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- if or (eq .Values.agent.service.type "LoadBalancer") (eq .Values.agent.service.type "NodePort") }}
externalTrafficPolicy: {{ .Values.agent.service.externalTrafficPolicy | quote }}
{{- end }}
ports:
- port: 6060
targetPort: 6060
Expand Down
3 changes: 3 additions & 0 deletions charts/crowdsec/templates/lapi-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ spec:
externalIPs:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- if or (eq .Values.lapi.service.type "LoadBalancer") (eq .Values.lapi.service.type "NodePort") }}
externalTrafficPolicy: {{ .Values.lapi.service.externalTrafficPolicy | quote }}
{{- end }}
ports:
{{- if .Values.lapi.metrics.enabled }}
- port: 6060
Expand Down
2 changes: 2 additions & 0 deletions charts/crowdsec/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ lapi:
externalIPs: []
loadBalancerIP: null
loadBalancerClass: null
externalTrafficPolicy: Cluster

# -- nodeSelector for lapi
nodeSelector: {}
Expand Down Expand Up @@ -240,6 +241,7 @@ agent:
externalIPs: []
loadBalancerIP: null
loadBalancerClass: null
externalTrafficPolicy: Cluster

# -- wait-for-lapi init container
wait_for_lapi:
Expand Down

0 comments on commit 7b38997

Please sign in to comment.