Skip to content

Kubernetes Pod Commandline Code Executor custom image #4547

Answered by mattwg
mattwg asked this question in Q&A
Discussion options

You must be logged in to vote

OK - I got it working! Was less an autogen and more a Kubernete's question!

We need to ensure that the image gets stored in minikube's registry (not the local registry). After that, when creating pods, Kubernetes will find the image in minikube's local registry because we set image_pull_policy="Never" in the pod spec.

# Set up Docker environment for Minikube use the Docker daemon running inside the Minikube VM not the local machine
eval $(minikube docker-env)

# Build the Docker image
docker build -t my-code-executor .

After building the local docker image, another key insight (thank you Claude!) was to include image_pull_policy="Never" in the pod spec so that the image was not pulled fr…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by mattwg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant