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

feat: add way to login without docker interactive, for other use cases #143

Open
PercyJax opened this issue Nov 7, 2024 · 1 comment
Open

Comments

@PercyJax
Copy link

PercyJax commented Nov 7, 2024

New to containers, docker, and kubernetes, so this might be a stupid request, but I can't actually figure out a good way to log into macless-haystack if I have this as a container in a kubernetes pod.

In docker, it is simple to just run a container in interactive mode, but the container gets in an error state and therefore I cannot exec into it from kubernetes to log in before it tries restarting itself.

@iMartyn
Copy link

iMartyn commented Jan 24, 2025

Workaround for k8s :

Set your command in your pod's container definition to :

command:
- /bin/sh
- -c
- while sleep 60; do echo '.'; done

then you can kubectl exec -ti into the pod, and run the command interactively. When you're logged in, then you can exit the container, remove the command, and it will run normally.

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

No branches or pull requests

2 participants