Comments (1)
@YrrepNoj and I chatted about this more in slack. The issue here is that the kubelet is not re-pulling the new image from the registry because of it's default behavior. The fix is to either use no tag at all for the image, or a :latest
tag
https://kubernetes.io/docs/concepts/containers/images/#updating-images
https://kubernetes.io/docs/concepts/containers/images/#imagepullpolicy-defaulting
When you (or a controller) submit a new Pod to the API server, your cluster sets the imagePullPolicy field when specific conditions are met:
if you omit the imagePullPolicy field, and you specify the digest for the container image, the imagePullPolicy is automatically set to IfNotPresent.
if you omit the imagePullPolicy field, and the tag for the container image is :latest, imagePullPolicy is automatically set to Always;
if you omit the imagePullPolicy field, and you don't specify the tag for the container image, imagePullPolicy is automatically set to Always;
if you omit the imagePullPolicy field, and you specify the tag for the container image that isn't :latest, the imagePullPolicy is automatically set to IfNotPresent.
https://kubernetes.io/docs/concepts/containers/images/#required-image-pull
If you would like to always force a pull, you can do one of the following:
Set the imagePullPolicy of the container to Always.
Omit the imagePullPolicy and use :latest as the tag for the image to use; Kubernetes will set the policy to Always when you submit the Pod.
Omit the imagePullPolicy and the tag for the image to use; Kubernetes will set the policy to Always when you submit the Pod.
Enable the AlwaysPullImages admission controller.
from zarf.
Related Issues (20)
- Adoption of Namespaces with `--adopt-existing-resources`
- Use Server Side Apply when creating Kubernetes resources
- Feature request: Zarf dev package templating
- v1 Deprecation `.metadata.aggregateChecksum` -> `.build.aggregateChecksum`
- v1 deprecation, move several metadata fields to `.metadata.annotations`
- v1 Deprecation `.components.x.[charts/manifests].noWait` -> `.components.x.[charts/manifests].x.wait`
- v1 deprecation, `.maxRetries` -> `retries`
- v1 Deprecation, pull `wait` out of actions
- request: Focus prune command to only worry about pruning
- docs(site): edit page button on zarf docs site takes you to wrong path on github
- docs(site): bad link in zarf tutorial - Creating a Zarf Package HOT 1
- Built in wait for data injections to complete before starting pod
- Several functions in Zarf need to be more context aware and return an error after context is cancelled
- Add link checker to docs in CI
- Improved image push progress bar support for long image names HOT 1
- docs(site): dos-games example dockerfile potentially broken due to archived web link HOT 2
- `zarf package create . -f typo` => misleading error message HOT 1
- Doc update for zarf connect
- `zarf connect <connect-name> --local-port` does not work as expected HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zarf.