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

Only https port being exposed when service is set to NodePort #87

Open
vaaleyard opened this issue Jun 5, 2024 · 2 comments
Open

Only https port being exposed when service is set to NodePort #87

vaaleyard opened this issue Jun 5, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@vaaleyard
Copy link

vaaleyard commented Jun 5, 2024

I'm trying to expose the passbolt service as a NodePort, but when I set it, only the https port is exposed...
I think that it's because it's the first port used in the service file: https://github.com/passbolt/charts-passbolt/blob/main/templates/service.yaml#L22

But I need the 80 port being exposed as well, so to add that I have to manually add the port in the yaml file with kubectl edit...
Is there a way to expose both directly in the helm chart? Or in any way that I don't need to edit it manually?

To set as a nodeport I'm just using this setting:

service:
  type: NodePort
@dlen dlen self-assigned this Jun 7, 2024
@dlen dlen added the enhancement New feature or request label Jun 7, 2024
@dlen
Copy link
Member

dlen commented Jun 7, 2024

Hey @vaaleyard thanks for the report. This is some improvement to be done in the chart. The only workaround is to edit the template as you suggested at the moment.

@vaaleyard
Copy link
Author

In case anyone needs it in the future, I'm automating it this way:

kubectl get service passbolt -o json | jq '.spec.ports += [{ "name": "http", "port": 80, "targetPort": 80 }]' | kubectl replace -f -

This will fetch the passbolt k8s service as json, add the port 80 to the ports array and replace the current service.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants