Last active
May 6, 2019 15:17
-
-
Save enolfc/654e299e1168534568985dde95bb3f41 to your computer and use it in GitHub Desktop.
Some commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Initialize helm | |
helm init --client-only | |
# Generate unique token: | |
openssl rand -hex 32 | |
# Get host name at https://nsupdate.fedcloud.eu/ | |
# Set IP 147.228.242.9 | |
# Add the jupyterhub helm repo | |
helm repo add jupyterhub https://jupyterhub.github.io/helm-chart/ | |
helm repo update | |
# Install the notebooks helm | |
helm install jupyterhub/jupyterhub --version=0.8 \ | |
--name=<some name> --namespace=<same name> \ | |
-f notebooks.yaml | |
# Explore what's there | |
kubectl get pod -n <your namespace> | |
kubectl get svc -n <your namespace> | |
kubectl get pvc -n <your namespace> | |
kubectl get all -n <your namespace> | |
# Upgrade helm | |
helm upgrade -f notebooks-checkin.yaml --version=0.8 \ | |
<your app name> jupyterhub/jupyterhub | |
# Install monitor helm | |
# monitor.yaml should be something like: | |
service: | |
api_token: "<the same token you generated and configured in the services section>" | |
helm install notebooks/notebooks-monitor \ | |
--version=0.1.1-ec59f3b --name <some unique naming> \ | |
--namespace <same namespace used before> \ | |
-f monitor.yaml | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment