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

IoT Edge runtime is not downloading latest version of module image after its updated #364

Closed
has-taiar opened this issue Sep 27, 2018 · 7 comments

Comments

@has-taiar
Copy link

Hi there,

I have an Azure IoT Edge device setup to pull an image from my Azure CR. It works fine and it pulls the latest image from the Azure CR. However, when I update this container on the Azure CR and push a new latest image. The Edge Runtime is not picking it up. Is this expected behavior?

Should I be setting modules by a specific tag name? I am thinking that using latest tag simplifies my deployment.json as I would not need to update it every time a new image is pushed.

Hope to hear from you soon.

Thanks
Has

@avranju
Copy link
Contributor

avranju commented Sep 27, 2018 via email

@has-taiar
Copy link
Author

Thanks for the prompt response @avranju, appreciate it.

Do we have to remove the image before we added it again? I am setting up CI/CD, so I am hoping that once an image is updated, it will trigger a new pipeline in Azure DevOps which would then just increment the tag (which would be version/build number). Would that be sufficient for the Edge Runtime to pull the new / latest image?

Thanks again

@avranju
Copy link
Contributor

avranju commented Sep 27, 2018 via email

@has-taiar
Copy link
Author

Thanks again @avranju,

Is that the best practice then? I was just concerned about updating the whole deployment.json file for one image as it might impact other modules inadvertently.

Thanks again for your quick reply. Much appreciated

@avranju
Copy link
Contributor

avranju commented Sep 27, 2018 via email

@myagley
Copy link
Contributor

myagley commented Oct 1, 2018

I'm going to close this issue because it seems to have been resolved. Please feel free to reopen if this is not the case. Thanks.

@malavvakharia
Copy link

@avranju @has-taiar ,

There is one setting while deploying the custom iot edge module that is Image Pull Policy.

But there is no option to use always.

image

Now what I need to handle scenario as @has-taiar ,If I push any changes to azure container registry it will not reflect in my iot edge device. So iot edge agent automatically detect that changes or how can I handle this type of scenario?

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

No branches or pull requests

5 participants