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

[k8s] Make ingress paths namespace aware #3373

Merged
merged 6 commits into from
May 27, 2024

Conversation

romilbhardwaj
Copy link
Collaborator

@romilbhardwaj romilbhardwaj commented Mar 27, 2024

Closes #3372. Paths are now of the format /skypilot/{namespace}/{cluster_name_on_cloud}/{port} to handle clusters having same name but in different namespaces.

This change is not backward compatible. Users upgrading to this version will have their previous clusters continue serving at the same endpoints, but running sky status --endpoints after this PR will show the new (and incorrect) endpoints for old clusters. Users using LoadBalancer mode (our default) are not affected.

Tested (run the relevant ones):

  • Code formatting: bash format.sh
  • Smoke tests: pytest tests/test_smoke.py::test_kubernetes_http_server_with_custom_ports --kubernetes

Copy link
Collaborator

@Michaelvll Michaelvll left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @romilbhardwaj!

@romilbhardwaj romilbhardwaj added this to the v0.6 milestone May 24, 2024
…o k8s_ports_ingress_namespaced

# Conflicts:
#	sky/provision/kubernetes/network.py
@romilbhardwaj
Copy link
Collaborator Author

Updated the PR to latest master and shortened service names - merging now.

Tested:

  • pytest tests/test_smoke.py::test_kubernetes_http_server_with_custom_ports --kubernetes

@romilbhardwaj romilbhardwaj merged commit b969a9e into master May 27, 2024
20 checks passed
@romilbhardwaj romilbhardwaj deleted the k8s_ports_ingress_namespaced branch May 27, 2024 21:22
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.

[k8s] Ingress paths for exposing ports need to be namespaced
2 participants