question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

kubernetes.yml doesn't include the registry prefix

See original GitHub issue

Just been updating the fabric8 docs and need to check the workflow for f-m-p…

If I generate a springboot quickstart and deploy it on a kubernetes cluster (not minikube) I add the fabric8:push goal which does push the image but the pod fails to start and it can’t find the image, the registry prefix was never added to the kubernetes.yml

to recreate (registry is behind VPN sorry incase others want to recreate)

mvn org.apache.maven.plugins:maven-archetype-plugin:2.2:generate -Dfilter=io.fabric8:spring-boot-camel-archetype -DgroupId=my.test -DartifactId=fabric8-test-project
cd fabric8-test-project
mvn clean fabric8:run  -Ddocker.push.registry=fabric8-docker-registry.default.beast.fabric8.io
kubectl get pods
fabric8-test-project-2364102176-hjgtf      0/1       ErrImagePull       0          7s
kubectl describe pod fabric8-test-project-2364102176-hjgtf 
Failed to pull image "test/fabric8-test-project:latest": Error: image test/fabric8-test-project:latest not found

Checking the ./target/classes/META-INF/fabric8/kubernetes.yml shows the registry isn’t added to the image name

        containers:
          image: "test/fabric8-test-project:latest"

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:19 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
srjturnercommented, Nov 17, 2016

@rhuss Is there any way of influencing the generated kubernetes.yml file to include a registry prefix and still use a generator (rather than XML or external Dockerfile) to generate the image? It seems that as soon as I add an <image> tag I am taking on the responsibility for controlling the image generation there, not just its name (and specifying just a <registry> element has no effect on kubernetes.yml). Thanks.

0reactions
emichafcommented, Aug 28, 2017

Any progress on the solution?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Kustomization.yaml "namePrefix" issue #4691 - GitHub
yaml for creating/adjusting the “default” service account and adding the former created “container-registry-onprem” secret as imagePullSecret.
Read more >
Labels and Selectors - Kubernetes
Labels are key/value pairs. Valid label keys have two segments: an optional prefix and name, separated by a slash ( / ). The...
Read more >
Images - Kubernetes
Container images are usually given a name such as pause , example/mycontainer , or kube-apiserver . Images can also include a registry hostname;...
Read more >
Secrets | Kubernetes
Using a Secret means that you don't need to include confidential data ... token Secrets are a mechanism to help automate node registration....
Read more >
Annotations | Kubernetes
Valid annotation keys have two segments: an optional prefix and name, separated by a slash ( / ). The name segment is required...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found