You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What happened?
I'm trying to run k3d with devspace but am seeing unauthorized when pushing to the repository.
❯ make build services="payment"
info Using namespace 'takara'
info Using kube context 'k3d-takara-dev'
payment make[1]: Entering directory '/home/aaron/Takara/takara-backend/payment'
payment go build -o ./bin/payment ./cmd/payment
payment make[1]: Leaving directory '/home/aaron/Takara/takara-backend/payment'
payment build:payment Rebuild image registry.localhost:5000/lee-aaron/go-payment because image config has changed
payment build:payment Building image 'registry.localhost:5000/lee-aaron/go-payment:WYEleJx' with engine 'docker'
payment build:payment Authenticating (registry.localhost:5000)...
payment build_images: build images: error building image registry.localhost:5000/lee-aaron/go-payment:WYEleJx: Error during image registry authentication: Error response from daemon: login attempt to http://registry.localhost:5000/v2/ failed with status: 403 Forbidden
fatal exit status 1
make: *** [Makefile:9: build] Error 1
What did you expect to happen instead?
It should build and deploy the pod fine
How can we reproduce the bug? (as minimally and precisely as possible)
k3d.yaml
apiVersion: k3d.io/v1alpha5
kind: Simple
metadata:
name: takara-dev
servers: 1
agents: 2
kubeAPI:
hostIP: "127.0.0.1"
hostPort: "6445"
token: superSecretToken # same as `--token superSecretToken`
registries: # define how registries should be created or used
create: # creates a default registry to be used with the cluster; same as `--registry-create registry.localhost`
name: registry.localhost
host: "0.0.0.0"
hostPort: "5000"
mirrors:
"registry.localhost:5000":
endpoint:
- http://registry.localhost:5000
options:
k3d: # k3d runtime settings
wait: true # wait for cluster to be usable before returining; same as `--wait` (default: true)
timeout: "60s" # wait timeout before aborting; same as `--timeout 60s`
disableLoadbalancer: false # same as `--no-lb`
disableImageVolume: false # same as `--no-image-volume`
disableRollback: false # same as `--no-Rollback`
kubeconfig:
updateDefaultKubeconfig: true # add new cluster to your default Kubeconfig; same as `--kubeconfig-update-default` (default: true)
switchCurrentContext: true # also set current-context to the new cluster's context; same as `--kubeconfig-switch-context` (default: true)
What happened?
I'm trying to run k3d with devspace but am seeing unauthorized when pushing to the repository.
What did you expect to happen instead?
It should build and deploy the pod fine
How can we reproduce the bug? (as minimally and precisely as possible)
k3d.yaml
Add to /etc/hosts
My devspace.yaml:
Commands I used
Local Environment:
Kubernetes Cluster:
Anything else we need to know?
Dockerfile
Building go binary in Makefile
The text was updated successfully, but these errors were encountered: