diff --git a/docs/posts/JHub-User-Guide.html b/docs/posts/JHub-User-Guide.html
index 443830f..7a41897 100644
--- a/docs/posts/JHub-User-Guide.html
+++ b/docs/posts/JHub-User-Guide.html
@@ -177,6 +177,7 @@
On this page
Let’s choose JupyterLab
Stop your server
Using your own conda environment
+ Trouble-shooting
@@ -207,6 +208,7 @@ JHub User Instructions
+Intro article
I have set us up a JupyterHub/RStudio cloud-computing hub on Azure. It’s on Kubernetes and will spin up VMs as needed. The VMs are not huge: 2CPU & 8 Gig RAM.
https://jhub.opensci.live/hub/login
Login authentication is via GitHub. Only members of the JHub GitHub team can log on. This is a testing environment. Contact Eli if you want to test it out.
@@ -316,6 +318,12 @@ Using you
jupyter kernelspec remove myenv
You can see the kernels with
jupyter kernelspec list
+
+
+Trouble-shooting
+
+- Debugging https://test-zerotojh.readthedocs.io/en/latest/administrator/debug.html
+
diff --git a/docs/posts/set-up-jh-gcp.html b/docs/posts/set-up-jh-gcp.html
index 6419f4c..3633ac1 100644
--- a/docs/posts/set-up-jh-gcp.html
+++ b/docs/posts/set-up-jh-gcp.html
@@ -171,6 +171,7 @@ On this page
@@ -219,6 +221,10 @@ Background
See examples of full config.yaml
files in the config
directory in the nmfs-opensci/nmfs-jhub GitHub repo.
+
+Just show me the code!
+Scroll to the bottom see the short version just to get the JHub set-up.
+
Set-up Google Cloud
@@ -284,9 +290,9 @@ Install JupyterHub
Connect to the JupyterHub
-Now it is running. Let’s try connecting via IP address
+Now it is running. Let’s try connecting via the External IP address
kubectl --namespace jhubk8 get service proxy-public
-Will show you the public IP address. You should be able to go to that and log in with any username (no password).
+It will show you the public (external) IP address. You should be able to go to that with http://
and you will see the log in page. Note you will not be able to log in as we did not create any users in the hub node (where the JupyterHub is running).
Set-up https
@@ -358,6 +364,46 @@ Post-installat
Verify an external IP is provided for the k8s Service proxy-public. kubectl --namespace=jhubk8 get service proxy-public
If the external ip remains , diagnose with: kubectl --namespace=jhubk8 describe service proxy-public
+
+
+Just the code to set up
+# Open a Cloud Shell and run these lines of code
+gcloud container clusters create \
+ --machine-type n1-standard-2 \
+ --num-nodes 2 \
+ --zone us-west1-a \
+ --cluster-version latest \
+ jhub
+
+kubectl create clusterrolebinding cluster-admin-binding \
+ --clusterrole=cluster-admin \
+ --user=yourname@gmail.com
+
+gcloud beta container node-pools create user-pool \
+ --machine-type n1-standard-2 \
+ --num-nodes 0 \
+ --enable-autoscaling \
+ --min-nodes 0 \
+ --max-nodes 3 \
+ --node-labels hub.jupyter.org/node-purpose=user \
+ --node-taints hub.jupyter.org_dedicated=user:NoSchedule \
+ --zone us-west1-a \
+ --preemptible \
+ --cluster jhub
+
+curl https://raw.githubusercontent.com/helm/helm/HEAD/scripts/get-helm-3
+
+helm repo add jupyterhub https://hub.jupyter.org/helm-chart/
+helm repo update
+
+helm upgrade --cleanup-on-fail \
+ --install jhub1 jupyterhub/jupyterhub \
+ --namespace jhubk8 \
+ --create-namespace \
+ --version=3.3.4 \
+ --values config.yaml
+
+# DONE!!! Now edit config.yaml by looking at some of the examples in the config directory in this repo.
diff --git a/docs/search.json b/docs/search.json
index a1a1b1b..8ec72de 100644
--- a/docs/search.json
+++ b/docs/search.json
@@ -129,6 +129,16 @@
"Set-up JHub on Google Cloud"
]
},
+ {
+ "objectID": "posts/set-up-jh-gcp.html#just-show-me-the-code",
+ "href": "posts/set-up-jh-gcp.html#just-show-me-the-code",
+ "title": "Set up JupyterHub on GCP",
+ "section": "Just show me the code!",
+ "text": "Just show me the code!\nScroll to the bottom see the short version just to get the JHub set-up.",
+ "crumbs": [
+ "Set-up JHub on Google Cloud"
+ ]
+ },
{
"objectID": "posts/set-up-jh-gcp.html#set-up-google-cloud",
"href": "posts/set-up-jh-gcp.html#set-up-google-cloud",
@@ -174,7 +184,7 @@
"href": "posts/set-up-jh-gcp.html#connect-to-the-jupyterhub",
"title": "Set up JupyterHub on GCP",
"section": "Connect to the JupyterHub",
- "text": "Connect to the JupyterHub\nNow it is running. Let’s try connecting via IP address\nkubectl --namespace jhubk8 get service proxy-public\nWill show you the public IP address. You should be able to go to that and log in with any username (no password).",
+ "text": "Connect to the JupyterHub\nNow it is running. Let’s try connecting via the External IP address\nkubectl --namespace jhubk8 get service proxy-public\nIt will show you the public (external) IP address. You should be able to go to that with http:// and you will see the log in page. Note you will not be able to log in as we did not create any users in the hub node (where the JupyterHub is running).",
"crumbs": [
"Set-up JHub on Google Cloud"
]
@@ -219,6 +229,16 @@
"Set-up JHub on Google Cloud"
]
},
+ {
+ "objectID": "posts/set-up-jh-gcp.html#just-the-code-to-set-up",
+ "href": "posts/set-up-jh-gcp.html#just-the-code-to-set-up",
+ "title": "Set up JupyterHub on GCP",
+ "section": "Just the code to set up",
+ "text": "Just the code to set up\n# Open a Cloud Shell and run these lines of code\ngcloud container clusters create \\\n --machine-type n1-standard-2 \\\n --num-nodes 2 \\\n --zone us-west1-a \\\n --cluster-version latest \\\n jhub\n\nkubectl create clusterrolebinding cluster-admin-binding \\\n --clusterrole=cluster-admin \\\n --user=yourname@gmail.com\n\ngcloud beta container node-pools create user-pool \\\n --machine-type n1-standard-2 \\\n --num-nodes 0 \\\n --enable-autoscaling \\\n --min-nodes 0 \\\n --max-nodes 3 \\\n --node-labels hub.jupyter.org/node-purpose=user \\\n --node-taints hub.jupyter.org_dedicated=user:NoSchedule \\\n --zone us-west1-a \\\n --preemptible \\\n --cluster jhub\n\ncurl https://raw.githubusercontent.com/helm/helm/HEAD/scripts/get-helm-3\n\nhelm repo add jupyterhub https://hub.jupyter.org/helm-chart/\nhelm repo update\n\nhelm upgrade --cleanup-on-fail \\\n --install jhub1 jupyterhub/jupyterhub \\\n --namespace jhubk8 \\\n --create-namespace \\\n --version=3.3.4 \\\n --values config.yaml\n\n# DONE!!! Now edit config.yaml by looking at some of the examples in the config directory in this repo.",
+ "crumbs": [
+ "Set-up JHub on Google Cloud"
+ ]
+ },
{
"objectID": "posts/Setup-Notes.html",
"href": "posts/Setup-Notes.html",
@@ -431,7 +451,7 @@
"href": "posts/JHub-User-Guide.html",
"title": "JHub User Instructions",
"section": "",
- "text": "I have set us up a JupyterHub/RStudio cloud-computing hub on Azure. It’s on Kubernetes and will spin up VMs as needed. The VMs are not huge: 2CPU & 8 Gig RAM.\nhttps://jhub.opensci.live/hub/login\nLogin authentication is via GitHub. Only members of the JHub GitHub team can log on. This is a testing environment. Contact Eli if you want to test it out.\nInstructions: It should be pretty self-explanatory.",
+ "text": "Intro article\nI have set us up a JupyterHub/RStudio cloud-computing hub on Azure. It’s on Kubernetes and will spin up VMs as needed. The VMs are not huge: 2CPU & 8 Gig RAM.\nhttps://jhub.opensci.live/hub/login\nLogin authentication is via GitHub. Only members of the JHub GitHub team can log on. This is a testing environment. Contact Eli if you want to test it out.\nInstructions: It should be pretty self-explanatory.",
"crumbs": [
"JHub User Guide"
]
@@ -506,6 +526,16 @@
"JHub User Guide"
]
},
+ {
+ "objectID": "posts/JHub-User-Guide.html#trouble-shooting",
+ "href": "posts/JHub-User-Guide.html#trouble-shooting",
+ "title": "JHub User Instructions",
+ "section": "Trouble-shooting",
+ "text": "Trouble-shooting\n\nDebugging https://test-zerotojh.readthedocs.io/en/latest/administrator/debug.html",
+ "crumbs": [
+ "JHub User Guide"
+ ]
+ },
{
"objectID": "posts/Set-up-centos-tljh.html",
"href": "posts/Set-up-centos-tljh.html",
diff --git a/docs/sitemap.xml b/docs/sitemap.xml
index 9cd2d9f..d72b71d 100644
--- a/docs/sitemap.xml
+++ b/docs/sitemap.xml
@@ -6,7 +6,7 @@
https://nmfs-opensci.github.io/nmfs-jhub/posts/set-up-jh-gcp.html
- 2024-03-31T16:10:36.737Z
+ 2024-05-08T17:13:58.184Z
https://nmfs-opensci.github.io/nmfs-jhub/posts/Setup-Notes.html
@@ -22,7 +22,7 @@
https://nmfs-opensci.github.io/nmfs-jhub/posts/JHub-User-Guide.html
- 2024-04-13T00:03:11.894Z
+ 2024-04-13T21:40:30.764Z
https://nmfs-opensci.github.io/nmfs-jhub/posts/Set-up-centos-tljh.html
@@ -30,7 +30,7 @@
https://nmfs-opensci.github.io/nmfs-jhub/posts/Set-up-daskhub.html
- 2024-03-31T16:02:35.659Z
+ 2024-04-14T00:36:04.527Z
https://nmfs-opensci.github.io/nmfs-jhub/posts/set-up-authentication.html
diff --git a/posts/set-up-jh-gcp.Rmd b/posts/set-up-jh-gcp.Rmd
index b3980cc..61aa23c 100644
--- a/posts/set-up-jh-gcp.Rmd
+++ b/posts/set-up-jh-gcp.Rmd
@@ -232,5 +232,6 @@ helm upgrade --cleanup-on-fail \
--values config.yaml
# DONE!!! Now edit config.yaml by looking at some of the examples in the config directory in this repo.
+```