Skip to content

ImagePullPolicy set to Never even if skaffold doesn't load the image #9687

@timebertt

Description

@timebertt

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

Steps to reproduce:

  1. Prepare the following files:
skaffold.yaml
apiVersion: skaffold/v4beta10
kind: Config
metadata:
  name: cert-manager
manifests:
  kustomize:
    paths:
      - .
deploy:
  kubectl: {}
kustomization.yaml
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- https://github.com/cert-manager/cert-manager/releases/download/v1.16.3/cert-manager.yaml
  1. Create a kind cluster:
kind create cluster
  1. Run skaffold:
$ 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
...

Also see timebertt/kubernetes-controller-sharding#437 as a real-world example.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions