carvel-dev / carvel-dev/kapp

Unable to build simple app image - following steps from blog

Open
#723 4 comments 0 reactions 0 assignees View on GitHub
bug helping with an issue
Dominant language
Go
Stars
1.1k
Forks
134
PR merge metrics
No merged PRs in 30d

Description

Hello,

**What steps did you take:**

I was following along the steps mentioned in the "Deploying Kubernetes Applications with ytt, kbld, and kapp" [blog](https://carvel.dev/blog/deploying-apps-with-ytt-kbld-kapp/).

**What happened:**

Under the "Building container images locally" [section](https://carvel.dev/blog/deploying-apps-with-ytt-kbld-kapp/#building-container-images-locally), the command to build the simple app image is listed as
```
$ kapp deploy -a simple-app -c -f <(ytt -f config-step-3-build-local/ -v hello_msg=friend | kbld -f-)
```
But I am seeing the following build error while running this command:
```
1:36:59PM: ongoing: reconcile deployment/simple-app (apps/v1) namespace: default
1:36:59PM: ^ Waiting for 1 unavailable replicas
1:36:59PM: L ok: waiting on replicaset/simple-app-7db87685bd (apps/v1) namespace: default
1:36:59PM: L ok: waiting on replicaset/simple-app-78d7ff4f98 (apps/v1) namespace: default
1:36:59PM: L ok: waiting on replicaset/simple-app-59f9fb6ff6 (apps/v1) namespace: default
1:36:59PM: L ok: waiting on replicaset/simple-app-59b5c7ff8d (apps/v1) namespace: default
1:36:59PM: L ongoing: waiting on pod/simple-app-7db87685bd-4h8p8 (v1) namespace: default
1:36:59PM: ^ Pending: ErrImagePull (message: rpc error: code = Unknown desc = failed to pull and unpack image "docker.io/library/kbld:docker-io-dkalinin-k8s-simple-app-sha256-ebcc4c1710480262a12cd3d7caaa21bfe9d79a1688c6bc9fd2fffe7ef8d0017b": failed to resolve reference "docker.io/library/kbld:docker-io-dkalinin-k8s-simple-app-sha256-ebcc4c1710480262a12cd3d7caaa21bfe9d79a1688c6bc9fd2fffe7ef8d0017b": pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed)
```

See full logs here - [deploy-err.txt](https://github.com/carvel-dev/kapp/files/11006173/deploy-err.txt)

**What did you expect:**

Successful build of the app image as mentioned in the blog.

**Anything else you would like to add:**
None

**Environment:**

- kapp version (use `kapp --version`):
```
$ kapp --version
kapp version 0.45.0
```

- OS (e.g. from `/etc/os-release`):
```
$ sw_vers
ProductName: macOS
ProductVersion: 13.0.1
BuildVersion: 22A400
```

- Kubernetes version (use `kubectl version`)
```
$ kubectl version
WARNING: This version information is deprecated and will be replaced with the output from kubectl version --short. Use --output=yaml|json to get the full version.
Client Version: version.Info{Major:"1", Minor:"26", GitVersion:"v1.26.2", GitCommit:"fc04e732bb3e7198d2fa44efa5457c7c6f8c0f5b", GitTreeState:"clean", BuildDate:"2023-02-22T13:32:21Z", GoVersion:"go1.20.1", Compiler:"gc", Platform:"darwin/amd64"}
Kustomize Version: v4.5.7
Server Version: version.Info{Major:"1", Minor:"25", GitVersion:"v1.25.3", GitCommit:"434bfd82814af038ad94d62ebe59b133fcb50506", GitTreeState:"clean", BuildDate:"2022-10-25T19:35:11Z", GoVersion:"go1.19.2", Compiler:"gc", Platform:"linux/amd64"}
```
---
Vote on this request

This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.

👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"

We are also happy to receive and review Pull Requests if you want to help working on this issue.

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.