-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Virtual service not being created #38
Comments
Can you check the hub logs as well as the proxy container logs? |
What should I be looking for? I don't see the virtual service yaml anywhere by the way? Did you forget to include it in the tutorial? |
Virtual services are not created using yaml but at https://github.com/splunk/jupyterhub-istio-proxy/blob/main/proxy/create.go#L50. To check the logs, I'd recommend that you follow https://kubernetes.io/docs/reference/kubectl/cheatsheet/#interacting-with-running-pods. Check for things like misconfig, network errors etc, in the logs. |
It turns out that the serviceaccount "default" in the jupyter namespace wasn't able to create virtualservices. I modified the rbac rules to allow it to create, list, get, delete virtualservices and it is now able to do so. However, now when I log in, am now getting this upon logging in: I think maybe there's something wrong with my clusterrolebinding definition for the
Now there's no more visible errors on the logs, it's just that spawning the pod ends up timing out. I didn't have any errors with jupyterhub when I use the out of the box helm chart. |
Also don't forget to assign roles aptly. From the README.md
|
Please review my previous comment: I've already done this and virtual services are now being created. However, I am now getting an error that is unrelated to virtualservices. Pods are now timing out (and not being created) when I log into the hub. I can close this issue and open a new issue or we can continue talking about this new issue here. |
It is hard to point out anything else without learning more details about setup. There are many ways of debugging k8s issues, logs, events, API server audit logs, even pod description of the failing pod. |
You can try turning on debug logs on jupyterhub, exec in to the pod, try curling the proxy API to verify connectivity. |
It's been a while since I've last heard from you so I wanted to see if this is still on your radar? By the way, the PR you made is quite out of date, since there's been several changes to the kubespawner code. FYI, these variables are no longer in the latest code:
|
Hi, |
I'm having the same problem, can you post the detailed rbac settings please,thank u very much! |
Adding this single headless service to the cluster allowed me to work with istio out of the box. No need to switch to
|
Followed the guide in https://medium.com/swlh/running-jupyterhub-with-istio-service-mesh-on-kubernetes-a-troubleshooting-journey-707039f36a7b and the virtual service is not being created for me. When I run the following command, I get no resources found..
The text was updated successfully, but these errors were encountered: