Skip to content

Commit

Permalink
Merge pull request #4 from canonical-labs/v0.2.x
Browse files Browse the repository at this point in the history
Upgraded kubeflow install to 0.2.7
  • Loading branch information
carmine authored Nov 13, 2018
2 parents 8c079a3 + 9d40aa9 commit 216c781
Showing 1 changed file with 24 additions and 14 deletions.
38 changes: 24 additions & 14 deletions install-kubeflow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ kubectl create namespace ${NAMESPACE}
# Which version of Kubeflow to use
# For a list of releases refer to:
# https://github.com/kubeflow/kubeflow/releases
VERSION=${VERSION:-v0.1.3}
VERSION=${VERSION:-v0.2.7}

# Initialize a ksonnet app. Set the namespace for it's default environment.
APP_NAME=${APP_NAME:-my-kubeflow}
Expand All @@ -31,30 +31,40 @@ ks env set default --namespace ${NAMESPACE}
# Install Kubeflow components
ks registry add kubeflow github.com/kubeflow/kubeflow/tree/${VERSION}/kubeflow

ks pkg install kubeflow/core@${VERSION}
ks pkg install kubeflow/tf-serving@${VERSION}
ks pkg install kubeflow/tf-job@${VERSION}
# ks pkg install kubeflow/core@${VERSION}
# ks pkg install kubeflow/tf-serving@${VERSION}
# ks pkg install kubeflow/tf-job@${VERSION}

# Create templates for core components
ks generate kubeflow-core kubeflow-core

# If your cluster is running on Azure you will need to set the cloud parameter.
# If the cluster was created with AKS or ACS choose aks, it if was created
# with acs-engine, choose acsengine
# PLATFORM=<aks|acsengine>
# ks param set kubeflow-core cloud ${PLATFORM}
ks pkg install kubeflow/argo
ks pkg install kubeflow/core
ks pkg install kubeflow/examples
ks pkg install kubeflow/katib
ks pkg install kubeflow/mpi-job
ks pkg install kubeflow/pytorch-job
ks pkg install kubeflow/seldon
ks pkg install kubeflow/tf-serving

# Create templates for core components
ks generate kubeflow-core kubeflow-core --name=kubeflow-core
ks param set kubeflow-core jupyterHubImage gcr.io/kubeflow/jupyterhub-k8s:1.0.1
# Enable collection of anonymous usage metrics
# Skip this step if you don't want to enable collection.
ks param set kubeflow-core reportUsage true
ks param set kubeflow-core usageId $(uuidgen)

# For non-cloud use .. use NodePort (instead of ClusterIp)
ks param set kubeflow-core jupyterHubServiceType NodePort

# Deploy Kubeflow
ks apply default -c kubeflow-core

ks generate argo kubeflow-argo --name=kubeflow-argo
ks apply default -c kubeflow-argo

# NB logDir is where the TF events are written. At this high level, might not be useful
# ks is 0.2.7 complains about logDir intermittently .. will adjust for 0.3.x
# see issue https://github.com/kubeflow/kubeflow/issues/1330
# ks generate tensorboard kubeflow-tensorboard --name=kubeflow-tensorboard --logDir=logs
# ks apply default -c kubeflow-tensorboard

until [[ `kubectl get pods -n=kubeflow | grep -o 'ContainerCreating' | wc -l` == 0 ]] ; do
echo "Checking kubeflow status until all pods are running ("`kubectl get pods -n=kubeflow | grep -o 'ContainerCreating' | wc -l`" not running). Sleeping for 10 seconds."
sleep 10
Expand Down

0 comments on commit 216c781

Please sign in to comment.