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

runpodctl from pod - certificate signed by unkown authority #149

Open
genativ opened this issue Jun 11, 2024 · 0 comments
Open

runpodctl from pod - certificate signed by unkown authority #149

genativ opened this issue Jun 11, 2024 · 0 comments

Comments

@genativ
Copy link

genativ commented Jun 11, 2024

I have a use case where a pod executes work and should automatically exit. The current behaviour is that pods restart after the ENTRYPOINT command has ended. This forces me to use the runpodctl from within a pod to put it in exited state. To test this behaviour. I have the following set-up:

Dockerfile

FROM ubuntu:22.04

COPY . .
RUN chmod +x run.sh

ENTRYPOINT ["./run.sh"]

run.sh

#!/bin/sh

# wait for 10 seconds
for i in $(seq 20 -1 0); do
    echo $i
    sleep 1
done

# stop the pod
echo "Stopping the pod"
runpodctl stop pod $RUNPOD_POD_ID

this results in the following output whenever the command is ran:
2024-06-11T14:33:40.393686854Z Error: Post "https://api.runpod.io/graphql?api_key=XXX": x509: certificate signed by unknown authority

Any thoughts?

ps: is there any other way to exit the pod after executing, instead of restarting it automatically?

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

1 participant