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

do we need a ipam plugin based on rpc #339

Closed
mars1024 opened this issue Jun 18, 2019 · 1 comment
Closed

do we need a ipam plugin based on rpc #339

mars1024 opened this issue Jun 18, 2019 · 1 comment
Labels

Comments

@mars1024
Copy link
Member

Recently I'm working on a CNI plugin which need to use a global centralized IPAM, and I implemented a client/server IPAM framework based on grpc, I'm wondering if we need a generic rpc-based IPAM plugin, which including a rpc proto file and a CNI plugin which allocate/release IP through grpc.
The rpc proto file is just like below, I think we can make it a standard,

service IPAMService {
    rpc AllocateIP (AllocateIPRequest) returns (AllocateIPResponse) {}
    rpc ReleaseIP (ReleaseIPRequest) returns (ReleaseIPResponse) {}
}

message AllocateIPRequest {
    string PodName = 1;
    string PodNamespace = 2;
    string SandboxID = 3;
    string NetNS = 4;
    string IfName = 5;
}
...

Then, we can build a centralized IPAM server based on IPAMService in proto file, after that, we can use it easily with this plugin.

Anyone has some suggestions?

@MikeZappa87
Copy link
Contributor

@mars1024 as I am looking at rpc right now. Possibly we could revive the rpc efforts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants