GoogleContainerTools / GoogleContainerTools/skaffold

Could not build with kaniko when docker proxy with auth

Open
#7,615 2 comments 0 reactions 0 assignees View on GitHub
kind/enhancement priority/p3
Dominant language
Go
Stars
15.9k
Forks
1.7k
Avg merge
3d 9h
Merged PRs (30d)
10

Description

### Expected behavior
Successful build

### Actual behavior
ImagePullBackOff in k8s cluster when skaffold build with kaniko

### Information

- Skaffold version: v1.35.2
- Operating system: MacOS
- Installed via: Homebrew
- Contents of skaffold.yaml:

```yaml
build:
artifacts:
- image:
kaniko:
dockerfile: build/Dockerfile
buildArgs:
BASE_IMAGE_NAME: "{{ .BASE_IMAGE_NAME }}"
cache: {}
cluster:
concurrency: 1
namespace: "default"
randomDockerConfigSecret: false
randomPullSecret: false
pullSecretName: pullsecret
dockerConfig:
path: dockerconfig.json
resources:
requests:
cpu: '200m'
memory: '500Mi'
limits:
cpu: '200m'
memory: '500Mi'
tagPolicy:
envTemplate:
template: "{{ or .IMAGE_TAG }}"
```

### Steps to reproduce the behavior

1. k8s cluster without internet for kanko build
2. docker proxy only able to get docker images
3. skaffold build
4. kubectl describe pod ...
ImagePullBackoff in status

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.