Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
naviHealth_Talend_Support
Contributor II
Contributor II

Failed to parse the kubeconfig. Cannot run program "kubelogin"

Error when publishing docker image to artifactory (jfrog).

Image is created in docker, push is failing.

[INFO]

--- maven-deploy-plugin:

2

.

8

.

2

:deploy (default-deploy) @ routename ---

[INFO]

Skipping artifact deployment

[INFO]

[INFO]

--- kubernetes-maven-plugin:

1

.

0

.

2

:push (push-image) @ routename ---

[ERROR] Failed to parse the kubeconfig.

java.io.IOException: Cannot run program

"kubelogin"

: error=

2

, No such file or directory

at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1128)

at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1071)

at io.fabric8.kubernetes.client.Config.loadFromKubeconfig(Config.java:598)

at io.fabric8.kubernetes.client.Config.tryKubeConfig(Config.java:499)

at io.fabric8.kubernetes.client.Config.autoConfigure(Config.java:236)

at io.fabric8.kubernetes.client.Config.<init>(Config.java:220)

at io.fabric8.kubernetes.client.ConfigBuilder.<init>(ConfigBuilder.java:16)

at io.fabric8.kubernetes.client.ConfigBuilder.<init>(ConfigBuilder.java:13)

at org.eclipse.jkube.kit.config.access.ClusterConfiguration.getConfig(ClusterConfiguration.java:62)

at org.eclipse.jkube.kit.config.access.ClusterAccess.createDefaultConfig(ClusterAccess.java:59)

at org.eclipse.jkube.kit.config.access.ClusterAccess.createKubernetesClient(ClusterAccess.java:51)

at org.eclipse.jkube.kit.config.access.ClusterAccess.isOpenShift(ClusterAccess.java:80)

at org.eclipse.jkube.kit.config.access.ClusterAccess.createDefaultClient(ClusterAccess.java:44)

at org.eclipse.jkube.kit.config.service.JKubeServiceHub.init(JKubeServiceHub.java:94)

at org.eclipse.jkube.kit.config.service.JKubeServiceHub.<init>(JKubeServiceHub.java:83)

at org.eclipse.jkube.kit.config.service.JKubeServiceHub$JKubeServiceHubBuilder.build(JKubeServiceHub.java:70)

at org.eclipse.jkube.maven.plugin.mojo.build.AbstractDockerMojo.execute(AbstractDockerMojo.java:438)

at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)

at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)

at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)

at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)

at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)

at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)

at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)

at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)

at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)

at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)

at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)

at org.apache.maven.cli.MavenCli.execute(MavenCli.java:957)

at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:289)

at org.apache.maven.cli.MavenCli.main(MavenCli.java:193)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.base/java.lang.reflect.Method.invoke(Method.java:566)

at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)

at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)

at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)

at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)

Caused by: java.io.IOException: error=

2

, No such file or directory

at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)

at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:340)

at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:271)

at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1107)

...

38

more
Labels (3)
3 Replies
Anonymous
Not applicable

Hello,

Could you elaborate for us on what Talend version and patch level that this feature has worked previously? And what Talend version and patch are you currently using? Additionally, can you please share a few screenshots of the issue for further review?

Best regards

Sabrina

naviHealth_Talend_Support
Contributor II
Contributor II
Author

This feature stopped working when I manually installed kubectl and the az cli with brew. Not sure where in talent the kubectl version that comes with Talend is defined, as it may be picking up the new one.

Version: 8.0.1

Build id: R2023-01

OSX

Anonymous
Not applicable

Hello,

Does the job run successfully when ran in Studio? Can you please provide the .eclipse product file from the main Studio directory?

How to set up an environment variables on google kubernetes engine?

https://stackoverflow.com/questions/66904668/how-to-set-up-an-environment-variables-on-google-kubern...

Best regards

Sabrina