You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my project, I use skaffold to deploy off-the-shelf components (alongside my own components).
For these components, skaffold doesn't build the images and hence doesn't load them into a local kind cluster.
With #9495, skaffold sets imagePullPolicy=Never even if it doesn't load the image resulting in ErrImageNeverPull, e.g.:
Waiting for deployments to stabilize...
- cert-manager:deployment/cert-manager: ErrImageNeverPull: Container image "quay.io/jetstack/cert-manager-controller:v1.16.3" is not present with pull policy of Never
$ skaffold run
No tags generated
Starting test...
Starting deploy...
Loading images into kind cluster nodes...
Images loaded in 167ns
- namespace/cert-manager created
- deployment.apps/cert-manager created
...
Waiting for deployments to stabilize...
- cert-manager:deployment/cert-manager: ErrImageNeverPull: Container image "quay.io/jetstack/cert-manager-controller:v1.16.3" is not present with pull policy of Never
...
The issue is that Skaffold is replacing the ImagePullPolicy in all pods it's deploying, regardless of whether an image was initially built locally or not.
For for the use case when a local application is deployed together with a couple of backing services that their image should be pulled from a remote registry, it leads to ErrImageNeverPull error.
In my project, I use skaffold to deploy off-the-shelf components (alongside my own components).
For these components, skaffold doesn't build the images and hence doesn't load them into a local kind cluster.
With #9495, skaffold sets
imagePullPolicy=Never
even if it doesn't load the image resulting inErrImageNeverPull
, e.g.:Steps to reproduce:
skaffold.yaml
kustomization.yaml
Also see timebertt/kubernetes-controller-sharding#437 as a real-world example.
The text was updated successfully, but these errors were encountered: