Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# Create a namespace for kubeflow deployment
# start kubernetes cluster using minikube
minikube start
# create the kubeflow namespace
kubectl create namespace ${NAMESPACE}
# ksonnet package versions
# define app name
# stop cluster to work around
minikube stop
# Initialize a ksonnet app.
ks init ${APP_NAME}
cd ${APP_NAME}
# Namespace for it's default environment.
ks env set default --namespace ${NAMESPACE}
# install kubeflow components
ks registry add kubeflow${VERSION}/kubeflow
ks pkg install kubeflow/core@${VERSION}
ks pkg install kubeflow/tf-serving@${VERSION}
ks pkg install kubeflow/tf-job@${VERSION}
ks generate kubeflow-core kubeflow-core
# start cluster to prepare deployment
minikube start
# deploy kubeflow
ks apply default -c kubeflow-core
# enable port forwarding to jupyter server - access in browser
kubectl port-forward tf-hub-0 8100:8000 --namespace=${NAMESPACE}
# optional: access minkube cluster dashboard at kubeflow namespace -!/overview?namespace=kubeflow
minikube dashboard
# optional: build a dummy model
$ ks generate tf-job my-tf-job --name=my-tf-job
$ ks apply default -c my-tf-job
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.