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

feat: add option to expose custom port from MPS #2

Merged
merged 3 commits into from
Apr 22, 2024
Merged

Conversation

odzhychko
Copy link
Collaborator

Redirection to that port from the instance-manger is implemented in modelix/modelix.workspaces#41

helm/modelix/values.yaml Outdated Show resolved Hide resolved
@odzhychko odzhychko changed the title eat: add option to expose custom port from MPS feat: add option to expose custom port from MPS Mar 21, 2024
@odzhychko odzhychko marked this pull request as ready for review March 21, 2024 08:30
@odzhychko odzhychko marked this pull request as draft April 17, 2024 06:53
# Empty string if no custom service should be exposed.
# This can be used to make service from custom MPS Plugins reachable from the workspaces.
# This feature is experimental and might change in the future.
experimentalCustomServicePort: ""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could allow a list of port numbers to be more flexible.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

> ports.targetPort (IntOrString)
> Number or name of the port to access on the pods targeted by the service. [...]. If this is a string, it will be looked up as a named port in the target Pod's container ports.

see. https://kubernetes.io/docs/reference/kubernetes-api/service-resources/service-v1/#ServiceSpec
@odzhychko odzhychko marked this pull request as ready for review April 22, 2024 07:12
@odzhychko odzhychko requested a review from slisson April 22, 2024 07:23
@odzhychko odzhychko merged commit 80fe1c1 into main Apr 22, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants