Skip to content

Specify image tag #559

@michalip

Description

@michalip

What happened?
Not able to set the image tag properly . Tried two scenarios below

What did you expect to happen instead?
Expect to be able to specify an image tag for deployment

How can we reproduce the bug? (as minimally and precisely as possible)
image name inside devspace.yaml= A.B.C:5000/imagename:version1

bash-4.2$ devspace dev
[info]   Loaded config from devspace.yaml
[info]   Building image 'A.B.C:5000/imagenam:latest' with engine 'docker'
[fatal]  Error building image: Error during image build: Error during image registry authentication: invalid reference format
image name inside devspace.yaml =	A.B.C:5000/imagename
bash-4.2$ devspace dev
ujCxYya: digest: sha256:14830b2da76fb52135726c4f4c7f56743b36daeefeb250fa8f1983dd5eab3a2b size: 2832
[info]   Image pushed to registry (A.B.C:5000)
[done] √ Done processing image 'A.B.C:5000/imagename'
[done] √ Deployed helm chart (Release revision: 3)
[done] √ Successfully deployed compname with component
[fatal]  Unable to start portforwarding: Error starting port-forwarding: Unable to list devspace pods: Selected Pod(s) cannot start (Status: ErrImage)
Events:
  Type     Reason     Age                    From                      Message
  ----     ------     ----                   ----                      -------
  Normal   Scheduled  5m28s                  default-scheduler         Successfully assigned devspace/imagename-7c889d5b8c-kpg8w to server
  Normal   Pulling    4m3s (x4 over 5m27s)   kubelet, server
  pulling image "A.B.C:5000/imagename"
  Warning  Failed     4m3s (x4 over 5m27s)   kubelet, server  Failed to pull image "A.B.C:5000/imagename": rpc error: code = Unknown desc = Error response from daemon: Get https://A.B.C:5000/v2/imagename/manifests/latest: no basic auth credentials
  Warning  Failed     4m3s (x4 over 5m27s)   kubelet, server  Error: ErrImagePull
  Warning  Failed     3m35s (x7 over 5m27s)  kubelet, server  Error: ImagePullBackOff

Local Environment:

  • Operating System: linux
  • Deployment method: kubectl apply

Kubernetes Cluster:

  • Cloud Provider: on prem K8s
  • Kubernetes Version: 1.13.3

Anything else we need to know?

It would be great if I didnt have to edit devspace.yaml at all - as this will be targeted towards users and I dont want to give them too much overhead

Thanks Guys

/kind bug

Metadata

Metadata

Assignees

Labels

area/building-imagesIssues related to building Docker imageskind/bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions