Skip to content
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

Ensure hub container is first by appending instead of prepending hub.extraContainers #3546

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

consideRatio
Copy link
Member

@consideRatio consideRatio commented Oct 18, 2024

By doing this, you'd be able to do kubectl logs deploy/hub and get the
hub containers logs no matter what. Before, you'd get the first listed
hub.extraContainer instead and have to add --container=hub to ensure
getting the hub containers logs.

I'm maintaining a deployment where we use hub.extraContainers, and by
doing so, have been required to specify -c hub anytime I want logs,
because its not the first container in the pod specs list of containers.

…extraContainers

By doing this, you'd be able to do `kubectl logs deploy/hub` and get the
hub containers logs no matter what. Before, you'd get the first listed
`hub.extraContainer` instead and have to add `--container=hub` to ensure
getting the hub containers logs.

I'm maintaining a deployment where we use hub.extraContainers, and by
doing so, have been required to specify `-c hub` anytime I want logs,
because its not the first container in the pod specs list of containers.
@consideRatio
Copy link
Member Author

@yuvipanda @sgibson91 @GeorgianaElena the need to specify -c hub when getting hub logs for 2i2c hubs has bugged me a while, this fixes it and makes us instead need to specify hub.extraContainers in the hub pod by name if we want their logs.

@manics manics merged commit 7c7e8ff into jupyterhub:main Oct 18, 2024
14 checks passed
consideRatio pushed a commit to jupyterhub/helm-chart that referenced this pull request Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants