Guide for those looking to run Kubeflow Version 0.2.2 on their Kuberenetes Cluster
Kubeflows guide in its current state needs lots of work. However, their guide is progressively being updated at Kubeflow.org
brew install ksonnet/tap/ks
Before deploying kubeflow make sure you have cluster admin privileges on your kubernetes cluster
kubectl create clusterrolebinding YOURNAME-cluster-admin-binding --clusterrole=cluster-admin [email protected]
Kubeflow is required in order to deploy the custom resources that use Tensorflow: TFJobs.
To install Kubeflow run the following command:
export KUBEFLOW_VERSION=0.2.2
export KUBEFLOW_DEPLOY=false
curl https://raw.githubusercontent.com/kubeflow/kubeflow/v$KUBEFLOW_VERSION/scripts/deploy.sh | bash
This command will automatically deploy a bash script which will set up a ksonnet directory called ksonnet_ks_app with all the necessary built-in packages and deploy them. The export KUBEFLOW_DEPLOY=false
command disables ks from deploying to your default namespace.
Now all thats left to deploy kubeflow is a couple ksonnet commands which can only be run inside the kubeflow_ks_app directory
#The first two commands are for running deploying kubeflow in a new namespace.
#Without these commands kubeflow will deploy to the default namespace
cd kubeflow_ks_app
NAMESPACE=mykubeflow
kubectl create ns $NAMESPACE
ks env set default --namespace=$NAMESPACE
ks apply default
If you would like to delete an old instance of kubeflow, or delete it all together use the following commands inside the kubeflow_ks_app directory:
#Undeploy
ks delete $NAMESPACE
#delete ks application (Only necessary if you really f*k'd up)
cd ..
rm -rf kubeflow_ks_app kubeflow_repo