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

[DESIGN] Submarine CLI need to support k8s native connection #955

Open
cdmikechen opened this issue May 10, 2022 · 0 comments
Open

[DESIGN] Submarine CLI need to support k8s native connection #955

cdmikechen opened this issue May 10, 2022 · 0 comments

Comments

@cdmikechen
Copy link
Contributor

cdmikechen commented May 10, 2022

Submarine CLI currently only supports connection based on REST.
If we have connected remote k8s cluster or deployed a local minikube, we should be able to directly access the submarine server through k8s client for data interaction.

For example. We deploy submarine by a CR with submarine operator, so Submarine CLI can get the deployment / pod information of submarine server through submarine customized resources. In this way, we can get relevant information about submarine/notebook in a more cloud native way.

Config

This is submarine client config by using submarine config list

{                                                          
   "connection": {                                          
     "hostname": "localhost",                               
     "port": 32080                                          
   }                                                         
} 

We can change this config Native Mode like this:

{
  "type": "native",
  "connection": {
    "operator": "submarine-example"
  }
}

or

TYPE:     native
CURRENT   CONNECTION            NAMESPACE
*         submarine-example-1   default
          submarine-example-2   test

If we have just one submarine server by oprator, we can set this CR default.

Design

The design idea is very simple ~
Data interaction based on native mode can directly call k8s client API to execute commands in pod. We can use java command (like submarine-k8s-submmiter jars)/ REST to get any information we want in pod.

@cdmikechen cdmikechen changed the title Submarine CLI need to support k8s native connection [DESIGN] Submarine CLI need to support k8s native connection May 15, 2022
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

No branches or pull requests

1 participant