Skip to content

Kaniko Pod not timing out  #3231

Closed
@prary

Description

@prary

Expected behavior

Skaffold should kill the build process after timeout is reached

Actual behavior

Skaffold not kill the build

Information

  • Skaffold version: v1.0.0
  • Operating system: Linux
  • Contents of skaffold.yaml:
apiVersion: skaffold/v1beta11
kind: Config
build:
  artifacts:
    - image: test
      kaniko:
        buildContext:
          localDir: {}
  cluster:
    timeout: 1m
    namespace: 103000-pra-dev
    dockerConfig:
      path: ~/.docker/config.json
deploy:
  kubectl:
    manifests:
      - deploy.yml

Logs

[prashant out]$ 
[prashant out]$ time ./skaffold run --tail -n 103000-pra-dev 
Generating tags...
 - testpythonserver -> testpythonserver:52171cc5
Tags generated in 52.122356ms
Checking cache...
 - testpythonserver: Not found. Building
Cache check complete in 1.485194542s
Starting build...
Creating docker config secret [docker-cfg375ab7d4-da62-4e67-ab53-d1ea2f8842ec]...
Building [testpythonserver]...
Storing build context at /tmp/context-9dc89d610e81bd7084eb3ca1a94751f1.tar.gz
INFO[0001] Resolved base name test/java-1.8.0:latest to test/java-1.8.0:latest 
INFO[0001] Resolved base name test/java-1.8.0:latest to test/java-1.8.0:latest 
INFO[0001] Downloading base image test/java-1.8.0:latest 
INFO[0003] Error while retrieving image from cache: getting file info: stat /cache/sha256:9bb9405e578c7a6a0a92d881d07c6d11a75b54d4cee20d79c57fe4ed1183bb77: no such file or directory 
INFO[0003] Downloading base image test/java-1.8.0:latest 
INFO[0003] Built cross stage deps: map[]                
INFO[0003] Downloading base image test/java-1.8.0:latest 
INFO[0003] Error while retrieving image from cache: getting file info: stat /cache/sha256:9bb9405e578c7a6a0a92d881d07c6d11a75b54d4cee20d79c57fe4ed1183bb77: no such file or directory 
INFO[0003] Downloading base image test/java-1.8.0:latest 
INFO[0004] Unpacking rootfs as cmd RUN sleep 10000 requires it. 
INFO[0010] Taking snapshot of full filesystem...        
INFO[0012] RUN sleep 10000                              
INFO[0012] cmd: /bin/sh                                 
INFO[0012] args: [-c sleep 10000]                       
^C^C

real	1m20.809s
user	0m0.316s
sys	0m0.045s
[prashant out]$ kubectl get all -n 103000-pra-dev
NAME               READY   STATUS    RESTARTS   AGE
pod/kaniko-6bpm5   1/1     Running   0          85s

Steps to reproduce the behavior

  1. time ./skaffold run --tail -n 103000-pra-dev

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions