-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Image pull fail on helm deploy when sync is enabled #2631
Comments
Thank you @dgageot. It seems that the problem still remaining.
|
Hi @yoshwata I'm afraid |
Hi @dgageot. I tried |
Hi @yoshwata, I'm not sure I understand what you're saying. I'll try to clarify what I meant.
Both use cases work with the exact same skaffold.yaml and manifests. In both cases, since you are using helm, you have to use the |
@dgageot Thank you for explanation. I understood and there is no problem for me. Let me close this issue. |
Expected behavior
Image pull as the settings of values.yaml on
skaffold deploy
.skaffold dev
is no problem.Actual behavior
ImagePullBackOff occurs to pull image name like
skaffold-helm:skaffold-helm
When I try to sync with this code(This is also put as reproduction example too), syncing works well.
Logs of skaffold dev
$ ../../out/skaffold-darwin-amd64 dev --default-repo docker.io/yoshwata Generating tags... - docker.io/yoshwata/skaffold-helm -> docker.io/yoshwata/skaffold-helm:latest Tags generated in 97.378µs Starting build... Building [docker.io/yoshwata/skaffold-helm]... Sending build context to Docker daemon 4.096kB Step 1/2 : FROM nginx:stable ---> 18ff9f3390d6 Step 2/2 : COPY static /usr/share/nginx/html/ ---> 6018f43d17f9 Successfully built 6018f43d17f9 Successfully tagged yoshwata/skaffold-helm:latest The push refers to repository [docker.io/yoshwata/skaffold-helm] f16acba8faf9: Preparing 20435c24eb60: Preparing 7c6961c07bf2: Preparing 6270adb5794c: Preparing 6270adb5794c: Layer already exists 7c6961c07bf2: Layer already exists 20435c24eb60: Layer already exists f16acba8faf9: Pushed latest: digest: sha256:cbb7c452b0d812e82300b833c201049e588202b9e819469c7e414eb2bf156712 size: 1155 Build complete in 16.122171527s Starting test... Test complete in 6.802µs Starting deploy... Error: release: "skaffold-helm" not found Helm release skaffold-helm not installed. Installing... No requirements found in skaffold-helm/charts. NAME: skaffold-helm LAST DEPLOYED: Fri Aug 23 11:14:12 2019 NAMESPACE: default STATUS: DEPLOYEDRESOURCES:
==> v1/Pod(related)
NAME READY STATUS RESTARTS AGE
skaffold-helm-56898c9f46-g6gbp 0/1 Pending 0 0s
==> v1/Service
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
skaffold-helm-skaffold-helm ClusterIP 10.43.15.1 80/TCP 0s
==> v1beta1/Deployment
NAME READY UP-TO-DATE AVAILABLE AGE
skaffold-helm 0/1 1 0 0s
==> v1beta1/Ingress
NAME HOSTS ADDRESS PORTS AGE
skaffold-helm-skaffold-helm * 80 0s
Deploy complete in 922.265861ms
Watching for changes...
Syncing 1 files for docker.io/yoshwata/skaffold-helm:latest@sha256:cbb7c452b0d812e82300b833c201049e588202b9e819469c7e414eb2bf156712
Watching for changes...
However
skaffold deploy
does not work at this condition because ofImagePullBackOff
.Logs of skaffold deploy
$ ../../out/skaffold-darwin-amd64 deploy --default-repo docker.io/yoshwata Starting deploy... Error: release: "skaffold-helm" not found Helm release skaffold-helm not installed. Installing... No requirements found in skaffold-helm/charts. NAME: skaffold-helm LAST DEPLOYED: Fri Aug 23 11:15:39 2019 NAMESPACE: default STATUS: DEPLOYEDRESOURCES:
==> v1/Pod(related)
NAME READY STATUS RESTARTS AGE
skaffold-helm-56898c9f46-g6gbp 0/1 Terminating 0 87s
skaffold-helm-5dfc67475-k85vg 0/1 Pending 0 0s
==> v1/Service
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
skaffold-helm-skaffold-helm ClusterIP 10.43.100.130 80/TCP 0s
==> v1beta1/Deployment
NAME READY UP-TO-DATE AVAILABLE AGE
skaffold-helm 0/1 1 0 0s
==> v1beta1/Ingress
NAME HOSTS ADDRESS PORTS AGE
skaffold-helm-skaffold-helm * 80 0s
Deploy complete in 1.084552247s
There is a new version (0.36.0) of Skaffold available. Download it at https://storage.googleapis.com/skaffold/releases/latest/skaffold-darwin-amd64
Result of kubectl get po
Image name is wrong, that should be
nginx:stable
as it is specified at values.yaml.Information
Steps to reproduce the behavior
skaffold deploy --default-repo docker.io/yoshwata
What I guess
This line might be something wrong.
The text was updated successfully, but these errors were encountered: