skai-x / elastic-jupyter-operator

Cloud-native way to provide elastic Jupyter Notebooks on Kubernetes. Run remote kernels, natively.
Apache License 2.0
194 stars 28 forks source link

How should I run or deploy this operator? #64

Closed Pan-will closed 6 months ago

Pan-will commented 6 months ago

The deployment steps I understand are as follows:

  1. Install this project - the elastic-jupyter-operator project itself is an operator

  2. kubectl apply -f ./hack/enterprise_gateway/prepare.yaml After the above two steps, the crd has been created, and CR is deployed next.

  3. JupyterNotebook CR: kubectl apply -f ./examples/elastic/kubeflow.tkestack.io_v1alpha1_jupyternotebook.yaml

  4. JupyterGateway CR: kubectl apply -f ./examples/elastic/kubeflow.tkestack.io_v1alpha1_jupytergateway.yaml

Is there any problem with the above steps? Then during my local execution, a problem occurred in step 1: when executing make deploy:

admin@Will elastic-jupyter-operator % make deploy /Users/admin/go/bin/controller-gen "crd:trivialVersions=true" rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/bases cd config/manager && /Users/admin/go/bin/kustomize edit set image controller=ghcr.io/skai-x/elastic-jupyter-operator:latest /Users/admin/go/bin/kustomize build config/default | kubectl apply -f - Unable to connect to the server: dial tcp 10.40.3.250:6443: i/o timeout make: *** [deploy] Error 1

How should I proceed? My biggest difficulty right now is: How to execute the elastic-jupyter-operator project so that it generates 5 necessary CRDs? The above problems are encountered when installing this project! OR, Is there a corresponding helm chart?