Skip to content

Conversation

mohammedabdulwahhab
Copy link
Contributor

@mohammedabdulwahhab mohammedabdulwahhab commented Oct 6, 2025

Overview:

Details:

Where should the reviewer start?

Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)

closes https://linear.app/nvidia/issue/DEP-386/kubernetes-implementation-for-servicediscovery-interface

Copy link

copy-pr-bot bot commented Oct 6, 2025

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

/// Status of a service instance
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub enum InstanceStatus {
/// Instance is ready to receive traffic
Copy link
Contributor

Choose a reason for hiding this comment

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

question do we need ready / not ready - or just rely on added and removed?

let metadata = self.metadata.clone();
let readiness_status = self.readiness_status.clone();

let app = axum::Router::new()
Copy link
Contributor

Choose a reason for hiding this comment

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

can we combine this with the system http server?

impl KubernetesServiceDiscovery {
/// Create a new Kubernetes service discovery client
pub async fn new(namespace: String) -> Result<Self> {
// TODO: Initialize Kubernetes client when kube crate is available
Copy link
Contributor

Choose a reason for hiding this comment

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

question: what is blocking kube crate?

}

#[async_trait]
impl ServiceRegistry for EtcdServiceDiscovery {
Copy link
Contributor

Choose a reason for hiding this comment

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

question: currently we have 'endpoint' discovery - do we maintain that here or is there some common portion of the metadata that will include endpoints?


/// Represents a discovered service instance
#[derive(Debug, Clone)]
pub struct Instance {
Copy link
Contributor

Choose a reason for hiding this comment

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

for endpoints - how would they be discovered or listed?

how do we get the client from the instance?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants