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.

Deploying to minikube stopped working starting from 2.7.0.Final

See original GitHub issue

Create a project with, e.g.,

mvn io.quarkus.platform:quarkus-maven-plugin:2.7.2.Final:create -Dextensions=jib,minikube

Executing mvn clean package -DskipTests -Dquarkus.kubernetes.deploy from the project dir results in:

ERROR] Failed to execute goal io.quarkus.platform:quarkus-maven-plugin:2.7.2.Final:build (default) on project code-with-quarkus: Failed to build quarkus application: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[ERROR]     [error]: Build step io.quarkus.kubernetes.deployment.KubernetesDeployer#deploy threw an exception: io.fabric8.kubernetes.client.KubernetesClientException: namespace not specified for an operation requiring one.
[ERROR]     at io.fabric8.kubernetes.client.dsl.base.OperationSupport.checkNamespace(OperationSupport.java:225)
[ERROR]     at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleDelete(OperationSupport.java:260)
[ERROR]     at io.fabric8.kubernetes.client.dsl.base.BaseOperation.deleteThis(BaseOperation.java:527)
[ERROR]     at io.fabric8.kubernetes.client.dsl.base.BaseOperation.delete(BaseOperation.java:445)
[ERROR]     at io.fabric8.kubernetes.client.dsl.internal.NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicableImpl.delete(NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicableImpl.java:116)
[ERROR]     at io.quarkus.kubernetes.deployment.KubernetesDeployer.lambda$deploy$4(KubernetesDeployer.java:211)
[ERROR]     at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
[ERROR]     at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177)
[ERROR]     at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655)
[ERROR]     at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
[ERROR]     at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
[ERROR]     at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
[ERROR]     at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
[ERROR]     at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
[ERROR]     at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497)
[ERROR]     at io.quarkus.kubernetes.deployment.KubernetesDeployer.deploy(KubernetesDeployer.java:199)
[ERROR]     at io.quarkus.kubernetes.deployment.KubernetesDeployer.deploy(KubernetesDeployer.java:110)

Changing the platform version to 2.6.3.Final fixes the deployment.

As mentioned by @iocanel in a chat, a workaround is to execute:

kubectl config set-context --current --namespace=default

before the build.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
iocanelcommented, Feb 24, 2022

I will pick this up.

0reactions
gsmetcommented, Dec 5, 2022

I’m closing this one.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Kubernetes extension - Quarkus
Deploying to Minikube. Minikube is quite popular when a Kubernetes cluster is needed for development purposes. To make the deployment to Minikube experience...
Read more >
Continuous deployment Ruby application to Minikube with ...
Simple guide to automate continuous deployment of Ruby application with ... minikube start $ eval $(minikube docker-env) $ kubectl config ...
Read more >
Deploying and Upgrading Strimzi
Minikube offers an easy way to get started with Kubernetes. If a Kubernetes cluster is unavailable, you can use Minikube to create a...
Read more >
Using Kong Ingress Controller Addon - Minikube - Kubernetes
Kong Ingress Controller (KIC) running on your minikube server. Start minikube minikube start It will take a few minutes to get all resources ......
Read more >
Deploying KEDA
Make sure to read our troubleshooting guide to fix potential CRD issues. ... If you want to try KEDA on Minikube or a...
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