Skip to content

Add configuration and documentation for debugging remote instance in the cluster #870

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

DiamondJoseph
Copy link
Contributor

@DiamondJoseph DiamondJoseph commented Jan 29, 2025

I needed to debug the contents of the authorization headers that are being passed into my tiled instance from the oauth2-proxy that it is deployed behind in the cluster: which requires that it is deployed with specific callback addresses that cannot easily be mocked from my machine.

While doing this, I thought I'd write up how to do it reliably, and make it configurable with minimal effort when I need need to look at what's going on in a running pod.

My scopes from oauth2 proxy are indeed not what I've requested, so my debugging narrowed down the problem.

Checklist

  • Add a Changelog entry
  • Add the ticket number which this PR closes to the comment section

Comment on lines +49 to +56
- "tiled"
- "serve"
- "config"
- "--host"
- "0.0.0.0"
- "--port"
- "8000"
- "--scalable"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These duplicate the Dockerfile CMD arguments: Kubernetes uses command ~analogously to Docker ENTRYPOINT and args ~analogously to Docker CMD. Yes, it's frustrating.

Unfortunately if you set command, CMD args are ignored, if they were picked up we wouldn't need to duplicate this here.

Copy link
Contributor

@dylanmcreynolds dylanmcreynolds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I learned some new stuff from the PR. I don't absolutely love distributing debugpy with all instance of the tiled image, but it's better than trying to maintain dual images.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants