Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Commit

Permalink
[logstash] use only httpPort in headless service
Browse files Browse the repository at this point in the history
This commit fix an issue introduced in 8ed75a9 where helm
install/upgrade is failing if a NodePort service is defined (see [0] for
more details).

Logstash headless service used to manage Statefulset does not anymore include
`.Values.service.ports` and include only Logstash httpPort.

This is done because headless service `ports` doesn't accept `nodePort`
values that can be included in `.Values.service.ports` when adding a
NodePort service.

[0]: elastic#807
  • Loading branch information
jmlrt committed Oct 14, 2020
1 parent 205574a commit b677ca4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions logstash/templates/service-headless.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,5 @@ spec:
selector:
app: "{{ template "logstash.fullname" . }}"
ports:
{{- if .Values.service }}
{{ toYaml .Values.service.ports | indent 4 }}
{{- else }}
- name: http
port: {{ .Values.httpPort }}
{{- end }}

0 comments on commit b677ca4

Please sign in to comment.