-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[logstash] Invalid ports in headless service #765
Comments
Hello, it seems there is |
I meant this part: helm-charts/logstash/templates/service-headless.yaml Lines 21 to 23 in c5660f4
helm-charts/logstash/values.yaml Lines 156 to 159 in c5660f4
|
What is the problem exactly? service supports multi-ports. |
helm-charts/logstash/templates/statefulset.yaml Lines 151 to 156 in c5660f4
Service has a different spec for ports, so chart installation fails when |
Yes, i got the same issue. "extraPorts" defined in values.yaml are used on both service-headless and statefulset directly but they require different definition. E.g. containerPort cannot exist in Service definition and containerPort is mandatory in Statefulset definition. This issue is introduced by #695 |
+1 |
The non-headless service uses |
This issue prevents the Logstash Helm chart from being used when extra ports need to be opened (e.g. for a Beats input). I don't think there is a workaround either. I just submitted a PR (#776) to address it as suggested by @autarchprinceps. Can this please be reviewed, merged and released ASAP so that the chart becomes usable again? |
+1 To be more explicit : extraPorts:
- name: beats
containerPort: 5044 I have an error : extraPorts:
- name: beats
port: 5044 I have an error : As @kopwei said, ServicePort and ContainerPort definition are not the same (https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#serviceport-v1-core and https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#containerport-v1-core), so you cannot use the same value for both. Note that the error is only located on the headless-service.yaml, the service.yaml is working well. As headless-service cannot be skipped in the chart, there is no workaround. |
I'm having the same problem :/ The |
Same for me: |
It works when downgrading 2 versions. I'm using
|
Chart version: 7.8.1
Kubernetes version: 1.18
Helm Version: 3.3.0-rc.2
Logstash headless service uses container ports from
.Values.extraPorts
which are incompatible with the service spec.The text was updated successfully, but these errors were encountered: