Closed
Description
Expected behavior
Using example from examples/kaniko-local
works as expected.
Actual behavior
Running examples/kaniko-local
generates error (GCP project name redacted):
$ skaffold dev -v debug
INFO[0000] Skaffold &{Version:v0.18.0 ConfigVersion:skaffold/v1alpha5 GitVersion: GitCommit:34651689be78b2c6bcfbace5072b00b93661f895 GitTreeState:clean BuildDate:2018-11-09T09:29:27Z GoVersion:go1.11.2 Compiler:gc Platform:darwin/amd64}
INFO[0000] no config entry found for kube-context gke_my-proj_us-west1-a_c1
INFO[0000] Using kubectl context: gke_my-proj_us-west1-a_c1
INFO[0000] no config entry found for kube-context gke_my-proj_us-west1-a_c1
DEBU[0000] Using builder: kaniko
DEBU[0000] Checking base image gcr.io/google-appengine/golang for ONBUILD triggers.
DEBU[0004] Found dependencies for dockerfile: [main.go]
Starting build...
Creating kaniko secret [e2esecret]...
DEBU[0004] No pull secret specified. Checking for one in the cluster.
Building [gcr.io/my-proj/skaffold-example]...
Storing build context at /tmp/context-8cc7b3ae1355d7af093c8f7abeb0de7c.tar.gz
DEBU[0006] Checking base image gcr.io/google-appengine/golang for ONBUILD triggers.
DEBU[0006] Found dependencies for dockerfile: [main.go]
INFO[0006] Waiting for kaniko-vm9x6 to be scheduled
INFO[0006] Waiting for kaniko-vm9x6 to be initialized
DEBU[0008] Running command: [kubectl cp /tmp/context-8cc7b3ae1355d7af093c8f7abeb0de7c.tar.gz kaniko-vm9x6://tmp/context-8cc7b3ae1355d7af093c8f7abeb0de7c.tar.gz -c kaniko-init-container -n default]
DEBU[0016] Running command: [kubectl exec kaniko-vm9x6 -c kaniko-init-container -n default -- tar -xzf /tmp/context-8cc7b3ae1355d7af093c8f7abeb0de7c.tar.gz -C /kaniko/buildcontext]
DEBU[0019] Running command: [kubectl exec kaniko-vm9x6 -c kaniko-init-container -n default -- touch /tmp/complete]
INFO[0022] Waiting for kaniko-vm9x6 to be ready
DEBU[0022] unable to get kaniko pod logs: container "kaniko" in pod "kaniko-vm9x6" is waiting to start: PodInitializing
DEBU[0024] unable to get kaniko pod logs: container "kaniko" in pod "kaniko-vm9x6" is waiting to start: PodInitializing
INFO[0024] no config entry found for kube-context gke_my-proj_us-west1-a_c1
INFO[0024] Using kubectl context: gke_my-proj_us-west1-a_c1
INFO[0024] no config entry found for kube-context gke_my-proj_us-west1-a_c1
DEBU[0024] Using builder: kaniko
Cleaning up...
DEBU[0024] manifests apiVersion: v1
kind: Pod
metadata:
name: getting-started-kaniko
spec:
containers:
- name: getting-started
image: gcr.io/my-proj/skaffold-example
DEBU[0024] Running command: [kubectl --context gke_my-proj_us-west1-a_c1 delete --ignore-not-found=true -f -]
DEBU[0025] unable to get kaniko pod logs: pods "kaniko-vm9x6" not found
Cleanup complete in 1.228702838s
FATA[0026] exiting dev mode because the first build failed: building [gcr.io/my-proj/skaffold-example]: kaniko build for [gcr.io/my-proj/skaffold-example]: waiting for pod to complete: pod already in terminal phase: Failed
Information
- Skaffold version: v0.18.0
- Operating system: GKE 1.11.2-gke.18