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

Skaffold should strip or warn on imagePullPolicy: always when deploying to local cluster #5443

Closed
briandealwis opened this issue Feb 24, 2021 · 2 comments
Labels
area/deploy area/errors kind/friction Issues causing user pain that do not have a workaround platform/minikube

Comments

@briandealwis
Copy link
Member

@VeerMuchandi showed me a hard-to-diagnose situation where he was building and deploying to a local minikube cluster, but was encountering pull errors from the cluster:

Deploy completed in 1.032 second
Waiting for deployments to stabilize...
 - deployment/student-app-api: container student-app-api is waiting to start: spring-boot-student-app-api:fb068c00d2e1e08a81d57968d2b4defc228871d00115ba29374a027182abc9e4 can't be pulled
    - pod/student-app-api-65678c6ff6-blgmp: container student-app-api is waiting to start: spring-boot-student-app-api:fb068c00d2e1e08a81d57968d2b4defc228871d00115ba29374a027182abc9e4 can't be pulled
 - deployment/student-app-api failed. Error: container student-app-api is waiting to start: spring-boot-student-app-api:fb068c00d2e1e08a81d57968d2b4defc228871d00115ba29374a027182abc9e4 can't be pulled.

We verified that the images were present in Minikube's docker daemon.

It turns out the deployment had an imagePullPolicy: always.

Should we emit a warning when deploying a built image? Or perhaps this should cause an error?

@briandealwis briandealwis added area/deploy platform/minikube triage/discuss Items for discussion area/errors kind/friction Issues causing user pain that do not have a workaround labels Feb 24, 2021
@nkubala
Copy link
Contributor

nkubala commented Apr 5, 2021

discussed this with the team. the consensus is that there's probably never a scenario where a user is trying to run skaffold with a manifest that has imagePullPolicy: always and doesn't wan't skaffold to succeed when deploying to a local cluster - otherwise they probably wouldn't be running skaffold in the first place 😄 it seems like ignoring the imagePullPolicy when deploying to a local cluster would be safe, and unblock the dev loop without users haven't to manually change their manifests.

@nkubala nkubala removed the triage/discuss Items for discussion label Apr 5, 2021
@tejal29
Copy link
Member

tejal29 commented Apr 1, 2022

closed as duplicate of #6992

@tejal29 tejal29 closed this as completed Apr 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/deploy area/errors kind/friction Issues causing user pain that do not have a workaround platform/minikube
Projects
None yet
Development

No branches or pull requests

3 participants