Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

can't pull latest container image for pod process #16

Open
cometta opened this issue May 18, 2020 · 5 comments
Open

can't pull latest container image for pod process #16

cometta opened this issue May 18, 2020 · 5 comments

Comments

@cometta
Copy link

cometta commented May 18, 2020

when running in kubernetes, the pod/process-XXX does not pull the latest new image. May i know which file in this repo that use to create pod/process-XXX ?

@calio
Copy link
Collaborator

calio commented May 19, 2020

pod/process-XXX uses the same image as the master process. For the master process, you specify the image when you launch it.

Could you describe the issue a little bit more in detail? Things like how did you run your code, what docker image is expected what docker image is actually used would be very helpful.

@cometta cometta changed the title can't pull largest image for pod process can't pull latest container image for pod process May 19, 2020
@cometta
Copy link
Author

cometta commented May 19, 2020

i use this command to run the job

kubectl create job fiber-test --image=<hub_name>/fiber-testing -- python3 /root/run.py

let say first time i run this job with <hub_name>/fiber-testing , then i build and push the new image . it still use back the old container image

@calio
Copy link
Collaborator

calio commented May 19, 2020

After you build and push image, do you still use kubectl create job fiber-test --image=<hub_name>/fiber-testing -- python3 /root/run.py ?

Can verify that you launch fiber master process with the correct image? Seems more like to be running kubectl with wrong image tag or something.

@cometta
Copy link
Author

cometta commented May 20, 2020

@calio of course i ran the command again =) i know there is somewhere need to set this imagePullPolicy=Always, can you point me to the source code where it script use to create pod/process-xxx

@calio
Copy link
Collaborator

calio commented May 20, 2020

OK, here is the place where new pod is created https://github.com/uber/fiber/blob/master/fiber/kubernetes_backend.py#L117

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants