-
Notifications
You must be signed in to change notification settings - Fork 1k
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
how to create a service for every task pod #2654
Comments
@shuaiyy sorry to reply you so late. For example, add
|
@wangyang0616 thanks for your reply. My question is not very clear, What I really want is one service for one pod:
currently, I can create a service for all pods with a label selector But I cannot create a service for a specific task pod, because the pod doesn't have a unique label from other task pods. I created a releated pr for volcano api in order to set a unique label for every task instance: add a label key: |
This way is not recommended, it's not even k8s best practice. |
@hwdef you’re right and I will not ask volcano-controller to create a service for pod. just add a unique label to pod is enough since service use label selectors to find the target pod. I can create a service manually and afford a little performance cost when we need service and ingress for a job's pod; It's very useful for ml developers when develop and debug a job on prod env. |
Hello 👋 Looks like there was no activity on this issue for last 90 days. |
quite a common case, specially, when it need to login to the specific pod for debug, then we have to create a service that bind to the specific pod of the volcano job. i suppose the pod of the volcano job should have a unique label too. |
Closing for now as there was no activity for last 60 days after marked as stale, let us know if you need this to be reopened! 🤗 |
What would you like to be added:
it seems vcjob use pod dns to discover each other, no service.
the task Pod labels don't have a unique label (e.g. task_index or task_pod_name),so i can't create a service manaully with service selector
Why is this needed:
i will create an ingress router for every taskPod for provide http debugging service, so service is need.
The text was updated successfully, but these errors were encountered: