Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bitnami/logstash] Can't create NodePort through logstash helm chart #15393

Closed
joshua-heidrich opened this issue Mar 8, 2023 · 6 comments
Closed
Assignees
Labels
logstash solved stale 15 days without activity tech-issues The user has a technical issue about an application

Comments

@joshua-heidrich
Copy link

joshua-heidrich commented Mar 8, 2023

Name and Version

bitnami/logstash 5.1.15

What architecture are you using?

amd64

What steps will reproduce the bug?

  1. Installing Logstash through Helm-Chart with service.type=NodePort

Are you using any custom parameters or values?

service:
  type: NodePort
  ports:
    - name: gelf
      port: 1234
      targetPort: 1234
      nodePort: 30345
      protocol: UDP

What is the expected behavior?

The install works.

What do you see instead?

Error: UPGRADE FAILED: failed to create resource: Service "logstash-headless" is invalid: spec.ports[0].nodePort: Forbidden: may not be used when type is 'ClusterIP'

Additional information

I think I already have the source of the problem. There is this section in headless-svc.yaml:

spec:
  type: ClusterIP
  clusterIP: None
  ports:
    {{- include "common.tplvalues.render" (dict "value" .Values.service.ports "context" $) | nindent 4 }}
  selector: {{ include "common.labels.matchLabels" . | nindent 4 }}

It uses .Values.service.ports which I have defined as follows:

    - name: gelf
      port: 1234
      targetPort: 1234
      nodePort: 30345
      protocol: UDP

I need the "nodePort"-part because I want to create a Nodeport. But this uses the NodePort port to create a ClusterIP which obviously does not work.

@joshua-heidrich joshua-heidrich added the tech-issues The user has a technical issue about an application label Mar 8, 2023
@github-actions github-actions bot added the triage Triage is needed label Mar 8, 2023
@javsalgar javsalgar changed the title Can't create NodePort through logstash helm chart [bitnami/logstash] Can't create NodePort through logstash helm chart Mar 10, 2023
@javsalgar
Copy link
Contributor

Hi!

Thank you so much for reporting! I believe we could use the omit go template function to not add the nodePort section inside the headless service. I will forward this to the team. However, if you want to speed up the process, would you like to submit a PR?

@github-actions
Copy link

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

@github-actions github-actions bot added the stale 15 days without activity label Mar 26, 2023
@github-actions
Copy link

github-actions bot commented Apr 1, 2023

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.

@github-actions github-actions bot added the solved label Apr 1, 2023
@bitnami-bot bitnami-bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 1, 2023
@copy1dollar
Copy link

copy1dollar commented Jul 5, 2023

This issue is not yet resolved.
The same problem is happening with 5.4.4.

related : elastic/helm-charts#839

@github-actions github-actions bot removed the solved label Jul 5, 2023
@javsalgar javsalgar reopened this Jul 5, 2023
@github-actions github-actions bot added in-progress and removed triage Triage is needed labels Jul 5, 2023
@bitnami-bot bitnami-bot assigned fevisera and unassigned javsalgar Jul 5, 2023
@github-actions github-actions bot removed the stale 15 days without activity label Jul 6, 2023
@github-actions
Copy link

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

@github-actions github-actions bot added the stale 15 days without activity label Jul 22, 2023
@github-actions
Copy link

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
logstash solved stale 15 days without activity tech-issues The user has a technical issue about an application
Projects
None yet
Development

No branches or pull requests

5 participants