From 9336cbc2ae7e617fe3282fbd30ecd7eeb23737ed Mon Sep 17 00:00:00 2001 From: barney-s Date: Mon, 29 Jan 2018 22:29:46 -0800 Subject: [PATCH] Missing namespace scope for commands missing namespace for kubectl commands in user guide --- user_guide.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/user_guide.md b/user_guide.md index 8758a049f17..59733cf46a7 100644 --- a/user_guide.md +++ b/user_guide.md @@ -95,8 +95,8 @@ By default we are using ClusterIPs for the JupyterHub UI. This can be changed to To connect to your notebook: ``` -PODNAME=`kubectl get pods --selector="app=tf-hub" --output=template --template="{{with index .items 0}}{{.metadata.name}}{{end}}"` -kubectl port-forward $PODNAME 8000:8000 +PODNAME=`kubectl get pods --namespace=${NAMESPACE} --selector="app=tf-hub" --output=template --template="{{with index .items 0}}{{.metadata.name}}{{end}}"` +kubectl port-forward --namespace=${NAMESPACE} $PODNAME 8000:8000 ``` Then open [http://127.0.0.1:8000](http://127.0.0.1:8000) in your browser.