Please see How to Minikube
$ minikube start --cpus 4 --memory 8192If you want to use the vm driver with hyperkit
$ minikube start --vm-driver=hyperkit --cpus 4 --memory 8192$ git clone [email protected]:google/kubeflow.git
$ cd kubeflow
$ kubectl apply -f components/ -R
# Wait until all pod are getting running state. (6-7 mins)Get the URL for the notebook.
$ minikube service tf-hub-lb --urlor access JupyterHub on http://localhost:8000 by
$ kubectl port-forward tf-hub-0 8000:8000input any username and password will login
Image : jupyter/scipy-notebook (jupyterhub version MUST be at least 0.8.1)
CPU: 200m (could be more)
Memory: 256Mi (could be more)
Extra Resource Limits: (leave it empty)
than press the Spawn button
##Tensorflow wit notebook in JupyterHub
Image : gcr.io/kubeflow/tensorflow-notebook-cpu
CPU: 300m (almost run out of quota in 4 CPU minikube)
Memory: 1.5Gi (could be more)
Extra Resource Limits: (leave it empty)
than press the Spawn button
You may get this message, python3.5 still works. but we are in 3.6 wait until google fixed this issue. We could just ignore.
/home/raju/anaconda3/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6See tensorflow/tensorflow#14182
$ kubectl describe node
Hi,
I have executed your commands but I ended with lots of errors when I applied the compoments. Here is a partial print of the errors:
[error validating "components/access-management/api/swagger.yaml": error validating data: [apiVersion not set, kind not set]; if you choose to ignore these errors, turn validation off with --validate=false, error validating "components/access-management/cloudbuild.yaml": error validating data: [apiVersion not set, kind not set]; if you choose to ignore these errors, turn validation off with --validate=false, error validating "components/access-management/example/binding.json": error validating data: [apiVersion not set, kind not set]; if you choose to ignore these errors, turn validation off with --validate=false, error validating "components/access-management/example/profile.json": error validating data: [apiVersion not set, kind not set]; if you choose to ignore these errors, turn validation off with --validate=false, error validating "components/admission-webhook/manifests/base/deployment.yaml": error validating data: ValidationError(Deployment.spec): missing required field "selector" in io.k8s.api.apps.v1.DeploymentSpec; if you choose to ignore these errors, turn validation off with --validate=false, unable to recognize "components/admission-webhook/manifests/base/kustomization.yaml": no matches for kind "Kustomization" in version "kustomize.config.k8s.io/v1beta1", error validating "components/admission-webhook/manifests/base/mutating-webhook-configuration.yaml": error validating data: ValidationError(MutatingWebhookConfiguration.webhooks[0].clientConfig.service): missing required field "namespace" in io.k8s.api.admissionregistration.v1beta1.ServiceReference; if you choose to ignore these errors, turn validation off with --validate=false, error validating "components/admission-webhook/manifests/base/params.yaml": error validating data: [apiVersion not set, kind not set]; if you choose to ignore these errors, turn validation off with --validate=false, unable to recognize "components/admission-webhook/manifests/overlays/cert-manager/certificate.yaml": no matches for kind "Certificate" in version "cert-manager.io/v1alpha2", unable to recognize "components/admission-webhook/manifests/overlays/cert-manager/certificate.yaml": no matches for kind "Issuer" in version "cert-manager.io/v1alpha2", error validating "components/admission-webhook/manifests/overlays/cert-manager/deployment.yaml": error validating data: ValidationError(Deployment.spec): missing required field "selector" in io.k8s.api.apps.v1.DeploymentSpec; if you choose to ignore these errors, turn validation off with --validate=false, error validating "components/admission-webhook/manifests/overlays/cert-manager/kustomization.yaml": error validating data: [apiVersion not set, kind not set]; if you choose to ignore these errors, turn validation off with --validate=false, error validating "components/admission-webhook/manifests/overlays/cert-manager/params.yaml": error validating data: [apiVersion not set, kind not set]; if you choose to ignore these errors, turn validation off with --validate=false, error validating "components/centraldashboard/.eslintrc.json": error validating data: [apiVersion not set, kind not set]; if you choose to ignore these errors, turn validation off with --validate=false, error validating "components/centraldashboard/app/.jasmine.json": error validating data: [apiVersion not set, kind not set]; if you choose to ignore these errors, turn validation off with --validate=false, error validating "components/centraldashboard/cloudbuild.yaml": error validating data: [apiVersion not set, kind not set]; if you choose to ignore these errorsI also saw some errors like:
Error from server (Invalid): error when creating "components/admission-webhook/manifests/base/cluster-role-binding.yaml": ClusterRoleBinding.rbac.authorization.k8s.io "cluster-role-binding" is invalid: subjects[0].namespace: Required value Error from server (NotFound): error when creating "components/centraldashboard/config/centraldashboard-config.yaml": namespaces "kubeflow" not found Error from server (Invalid): error when creating "components/crud-web-apps/jupyter/manifests/base/cluster-role-binding.yaml": ClusterRoleBinding.rbac.authorization.k8s.io "cluster-role-binding" is invalid: subjects[0].namespace: Required value Error from server (NotFound): error when creating "components/crud-web-apps/tensorboards/deploy/app-rbac.yaml": namespaces "kubeflow" not found Error from server (NotFound): error when creating "components/crud-web-apps/tensorboards/deploy/app.yaml": namespaces "kubeflow" not found Error from server (NotFound): error when creating "components/crud-web-apps/tensorboards/deploy/app.yaml": namespaces "kubeflow" not found Error from server (Invalid): error when creating "components/crud-web-apps/tensorboards/manifests/base/cluster-role-binding.yaml": ClusterRoleBinding.rbac.authorization.k8s.io "cluster-role-binding" is invalid: subjects[0].namespace: Required value Error from server (Invalid): error when creating "components/crud-web-apps/volumes/manifests/base/cluster-role-binding.yaml": ClusterRoleBinding.rbac.authorization.k8s.io "cluster-role-binding" is invalid: subjects[0].namespace: Required value Error from server (Invalid): error when creating "components/notebook-controller/config/rbac/auth_proxy_role_binding.yaml": ClusterRoleBinding.rbac.authorization.k8s.io "proxy-rolebinding" is invalid: subjects[0].namespace: Required value Error from server (Invalid): error when creating "components/notebook-controller/config/rbac/role_binding.yaml": ClusterRoleBinding.rbac.authorization.k8s.io "role-binding" is invalid: subjects[0].namespace: Required value Error from server (Invalid): error when creating "components/profile-controller/config/rbac/auth_proxy_role_binding.yaml": ClusterRoleBinding.rbac.authorization.k8s.io "proxy-rolebinding" is invalid: subjects[0].namespace: Required value Error from server (Invalid): error when creating "components/profile-controller/config/rbac/role_binding.yaml": ClusterRoleBinding.rbac.authorization.k8s.io "cluster-role-binding" is invalid: subjects[0].namespace: Required valueFor some of these erros (the last ones printed) I can create namespace kubeflow as well as adding some of the resources the namespace specification, but I was wondering wether you could help me set up kubeflow on minikube (I set up minikube using hyperkit drive on my mac with catalina)