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

kubernetes pod stays in running #191

Closed
fosterseth opened this issue Sep 25, 2020 · 4 comments
Closed

kubernetes pod stays in running #191

fosterseth opened this issue Sep 25, 2020 · 4 comments

Comments

@fosterseth
Copy link
Member

Tried this out with a local minikube setup

I got a hang when trying the following (I see the pod is created and running, but it never terminates)

- work-kubernetes:
    worktype: kubeit
    namespace: default
    command: "bash -c \"while read -r line; do echo $line; sleep 0.5; done\""
    authmethod: params
    kubehost: http://127.0.0.1:44355/
    kubeapipath: api/v1
    kubeusername: sbf
    kubepassword: sbf
    allowruntimecommand: true

seq 10 | receptorctl --socket /tmp/foo.sock work submit kubeit --payload - -f --param kube_image=centos:8 --rm

if I add in my own kube_command it will work

seq 10 | receptorctl --socket /tmp/foo.sock work submit kubeit --payload - -f --param kube_image=centos:8 --rm --param kube_command='echo HI'

also if I change authmethod to kubeconfig it will work

- work-kubernetes:
    worktype: kubeit
    namespace: default
    command: "bash -c \"while read -r line; do echo $line; sleep 0.5; done\""
    kubeconfig: /home/sfoster/.kube/config
    authmethod: kubeconfig
    allowruntimecommand: true

Suspicion is that the command isn't getting a stdin -- maybe receptor isn't passing it to the kube api, or the kube api not getting it to the container

@ghjm
Copy link
Collaborator

ghjm commented Oct 5, 2020

@fosterseth can you check if this is still happening in your environment post-#199? There have been a lot of changes since the issue was opened.

@fosterseth
Copy link
Member Author

@ghjm just tested, it's still an issue with #199 on minikube (with authmethod params)

@ghjm
Copy link
Collaborator

ghjm commented Nov 12, 2020

This might be fixed by the k8s status reporting bugfix in #242. Can you re-check again @fosterseth?

@fosterseth
Copy link
Member Author

this bug appears to be fixed now

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