java.lang.IllegalArgumentException

No kubernetes service could be found for name: gogs in namespace: default

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web5

  • via GitHub by davsclaus
    ,
  • via GitHub by davsclaus
    ,
  • Stack trace

    • java.lang.IllegalArgumentException: No kubernetes service could be found for name: gogs in namespace: default at io.fabric8.kubernetes.api.KubernetesHelper.getServiceURL(KubernetesHelper.java:1297) at io.fabric8.kubernetes.api.KubernetesHelper.getServiceURL(KubernetesHelper.java:1259) at io.fabric8.maven.enricher.git.GitEnricher.getAnnotations(GitEnricher.java:129) at io.fabric8.maven.plugin.enricher.EnricherManager$Extractor$2.extract(EnricherManager.java:154) at io.fabric8.maven.plugin.enricher.EnricherManager.extract(EnricherManager.java:130) at io.fabric8.maven.plugin.enricher.EnricherManager.extractAnnotations(EnricherManager.java:120) at io.fabric8.maven.plugin.enricher.MetadataEnricherVisitor.visit(MetadataEnricherVisitor.java:46) at io.fabric8.kubernetes.api.builder.BaseFluent.accept(BaseFluent.java:70) at io.fabric8.kubernetes.api.builder.BaseFluent.accept(BaseFluent.java:10) at io.fabric8.kubernetes.api.builder.BaseFluent.accept(BaseFluent.java:67) at io.fabric8.maven.plugin.enricher.EnricherManager.visit(EnricherManager.java:174) at io.fabric8.maven.plugin.enricher.EnricherManager.enrichLabels(EnricherManager.java:71) at io.fabric8.maven.plugin.ResourceMojo.generateKubernetesResources(ResourceMojo.java:366) at io.fabric8.maven.plugin.ResourceMojo.execute(ResourceMojo.java:160) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216) at org.apache.maven.cli.MavenCli.main(MavenCli.java:160) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.