Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Provide a "no cni mode" in OpenPAI #5436

Open
hzy46 opened this issue Apr 23, 2021 · 3 comments
Open

Provide a "no cni mode" in OpenPAI #5436

hzy46 opened this issue Apr 23, 2021 · 3 comments

Comments

@hzy46
Copy link
Contributor

hzy46 commented Apr 23, 2021

Sometimes k8s network plugin causes some problems in OpenPAI. Users can follow the steps below to solve the problem:

  1. remove CNI in Kubernetes
    Detailed steps are provided here : https://openpai.readthedocs.io/en/latest/manual/cluster-admin/installation-faqs-and-troubleshooting.html#how-to-remove-the-k8s-network-plugin

  2. change OpenPAI source code

    • Change pylon and rest-server to use hostNetwork
    • Change pylon/rest-server config, make them use “localhost” to connect PAI service in master node
    • Change hivedScheduler service type from “NodePort” to “ClusterIP”

The solution is not easy to perform. Maybe we can provide a "no cni mode" in OpenPAI for this need.

@Binyang2014
Copy link
Contributor

Maybe we could deploy a simple cni, such as kubenet https://kubernetes.io/docs/concepts/extend-kubernetes/compute-storage-net/network-plugins/#kubenet.
More refer: https://docs.microsoft.com/en-us/azure/aks/configure-kubenet

I'm not sure if this could solve our issue

@fanyangCS
Copy link
Contributor

@Binyang2014 is kubenet available in Kubespray?

@Binyang2014
Copy link
Contributor

kubespry doesn't support it... https://github.com/kubernetes-sigs/kubespray/blob/daed3e5b6a085ac99e076b51d314fcf76e4127b4/roles/kubernetes/preinstall/tasks/0020-verify-settings.yml#L33

But it support a plugin called cni https://github.com/kubernetes-sigs/kubespray/blob/master/docs/cni.md. It only unpack cni binaries into /opt/cni/bin. Then we can customize kubelet to use kubenet. Seems it works from the doc

@Binyang2014 Binyang2014 mentioned this issue Apr 28, 2021
16 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants