Kaniko build seems to hang on "Retrieving image" in GKE #1834
Labels
issue/hang
kind/bug
Something isn't working
kind/question
Further information is requested
needs-discussion
Items which need more discussion before commitment
platform/gke
priority/p2
High impact feature/bug. Will get a lot of users happy
registry/gcr
Actual behavior
When trying to build a container in GKE using Kaniko the run seems to just hang / stop doing anything after the "Retrieving image" log line. The original
Dockerfile
I tried to use was a multi-stage build, but I can not get even a minimalDockerfile
to build. The issue seems specific to kubernetes/GKE as I could build the original Dockerfile without issue locally with Docker.Things I've tried:
--registry-mirror
flag to pull thelibrary/
images frommirror.gcr.io
as well as hosting the images in our own GCR project (thinking being thatdocker.io
was perhaps blocking/limiting us).Since this happens with every kaniko container I tried there is likely something I'm missing in my pod's YAML or GKE cluster config or something but for the life of me I cannot figure out what.
Expected behavior
The
executor
should build the container as expectedTo Reproduce
Steps to reproduce the behavior:
kubectl apply -f kaniko.yml
kubectl exec -it kaniko-tst -- sh
executor --dockerfile=Dockerfile_min --context=git://<internal_git>/<team>/<repo>.git --git=branch=wip-deployment-debug --no-push --verbosity=trace
Additional Information
nothing else logs after that, even leaving it to run for upwards of an hour or overnight
kaniko.yml
no build context needed besides Dockerfile
happens with every Kaniko container I've tried (
latest
,debug
,v1.7.0-debug
,v1.6.0-debug
,v1.5.0-debug
)1.18.20-gke.901
Triage Notes for the Maintainers
--cache
flagThe text was updated successfully, but these errors were encountered: