GoogleContainerTools / GoogleContainerTools/skaffold

Download tar artifact from kaniko pod

Open
#7,133 2 comments 0 reactions 0 assignees View on GitHub
area/build build/kaniko help wanted kind/feature-request priority/p3
Dominant language
Go
Stars
15.9k
Forks
1.7k
Avg merge
3d 9h
Merged PRs (30d)
10

Description

### Expected behavior
I am able to get built docker image archived to tar from in cluster kaniko pod (to test it via container-structure-test and then push via crane)

### Actual behavior
Tar artifact is built but I am not able to get it

### Information

- Skaffold version: v1.36.0
- Operating system: Ubuntu 20.04
- Installed via: skaffold.dev
- Contents of skaffold.yaml:

```yaml
apiVersion: skaffold/v2beta27
kind: Config
build:
artifacts:
- image: 1111111111.dkr.ecr.us-east-1.amazonaws.com/example/deployer
kaniko:
noPush: true
tarPath: image.tar
logFormat: text
tagPolicy:
envTemplate:
template: "{{.SKAFFOLD_IMAGE_TAG}}"
cluster:
concurrency: 0
namespace: my-namespace
serviceAccount: skaffold-kaniko
dockerConfig:
secretName: jenkins-agent-docker-config-json
resources:
requests:
memory: 128Mi
cpu: 200m
limits:
memory: 1Gi
cpu: 1
```

### Steps to reproduce the behavior

1. `skaffold build`
2. Tar is built successfully

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.