earthlab / hub-ops

Infrastructure and operations for the Earth Lab JupyterHub
https://earthlab-hub-ops.readthedocs.io/en/latest/
4 stars 8 forks source link

issues shutting down the hub #347

Open lwasser opened 3 years ago

lwasser commented 3 years ago

@kcranston i'm running into authentication issues when trying to shut down the nbgrader-hub.

i've tried this both in google cloud console and locally and get the same certificate issue. Do you have any idea what this may be about?

i found this but am not sure what this means in terms of implementation

lewa8222@cloudshell:~ (ea-jupyter)$ kubectl get  pods --namespace=nbgrader-hub
Unable to connect to the server: x509: certificate signed by unknown authority
kcranston commented 3 years ago

I wonder if your default gcloud / kubectl connection is pointing to the old cluster (jhub) rather than the new cluster (jhub2). That command works for me:

kubectl get  pods --namespace=nbgrader-hub
NAME                              READY   STATUS                  RESTARTS   AGE
continuous-image-puller-hgrjp     1/1     Running                 0          33h
hook-image-awaiter-zc8tv          1/1     Running                 0          35h
hook-image-puller-tlmmz           0/1     Init:ImagePullBackOff   0          33h
hub-c5c44d76b-k9lsb               1/1     Running                 0          34h
proxy-5797f8d787-dm9fh            1/1     Running                 0          34h
user-placeholder-0                1/1     Running                 0          33h
user-placeholder-1                1/1     Running                 0          33h
user-scheduler-779876497d-mcwgn   1/1     Running                 0          35h
user-scheduler-779876497d-zvqbv   1/1     Running                 0          34h

You may need to regenerate credentials using get-credentials:

gcloud container clusters get-credentials jhub2

lwasser commented 3 years ago

ok making progress @kcranston in our docs here

it shows more than the two pods. I see what you printed above which includes 9 lines vs two lines of things running. is this correct?

ALSO helm list doesn't seem to work as it used to. i guess i can wait until you redo the docs as well :)

(base) leahwasser$ helm list
Error: could not find tiller