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] Optimize service creation #3446

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

romilbhardwaj
Copy link
Collaborator

@romilbhardwaj romilbhardwaj commented Apr 17, 2024

Changes our Kubernetes service creation to create services only when required. Reduces SkyPilot's footprint on the k8s cluster.

  • -head-ssh service - required only when using NodePort networking mode
  • -head service- required only when using multi-node

Based on feedback from user.

Tested - manually with sky launch on multi-node and single node clusters.

@@ -96,7 +99,10 @@ provider:
- protocol: TCP
port: 22
targetPort: 22
{% endif %}
{% if num_nodes > 1 %}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just curious, why is the following service ever required? It seems 8265 or 10001 does not need to be exposed to public.

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.

None yet

2 participants