@halkeye I think I partially resolved this problem by workaround, I was used --driver=hyperv for minikube and now I have cluster IP from my network (192.168…).
I can connect and configure jenkins in kuberenetes using local minikube but when I use freestyle project and Restrict where this project can be run
option with jnlp I see errors in agent pods:
Dec 07, 2022 11:35:11 AM hudson.remoting.jnlp.Main createEngine
INFO: Setting up agent: jnlp-spwz7
Dec 07, 2022 11:35:11 AM hudson.remoting.jnlp.Main$CuiListener <init>
INFO: Jenkins agent is running in headless mode.
Dec 07, 2022 11:35:11 AM hudson.remoting.Engine startEngine
INFO: Using Remoting version: 4.9
Dec 07, 2022 11:35:11 AM org.jenkinsci.remoting.engine.WorkDirManager initializeWorkDir
INFO: Using /home/jenkins/remoting as a remoting work directory
Dec 07, 2022 11:35:11 AM org.jenkinsci.remoting.engine.WorkDirManager setupLogging
INFO: Both error and output logs will be printed to /home/jenkins/remoting
Dec 07, 2022 11:35:12 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Locating server among [http://192.168.0.10:8080/]
Dec 07, 2022 11:35:12 AM org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver resolve
INFO: Remoting server accepts the following protocols: [JNLP4-connect, Ping]
Dec 07, 2022 11:35:12 AM org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver resolve
INFO: Remoting TCP connection tunneling is enabled. Skipping the TCP Agent Listener Port availability check
Dec 07, 2022 11:35:12 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Agent discovery successful
Agent address: 192.168.0.10
Agent port: 50000
Identity: 7f:1e:90:75:17:09:ed:c2:bb:4f:4c:59:21:3b:4e:fa
Dec 07, 2022 11:35:12 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Handshaking
Dec 07, 2022 11:35:12 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Connecting to 192.168.0.10:50000
Dec 07, 2022 11:35:12 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Trying protocol: JNLP4-connect
Dec 07, 2022 11:35:12 AM org.jenkinsci.remoting.protocol.impl.BIONetworkLayer$Reader run
INFO: Waiting for ProtocolStack to start.
Dec 07, 2022 11:35:22 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Remote identity confirmed: 7f:1e:90:75:17:09:ed:c2:bb:4f:4c:59:21:3b:4e:fa
Dec 07, 2022 11:35:23 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Connected
Dec 07, 2022 11:35:23 AM hudson.remoting.UserRequest perform
WARNING: LinkageError while performing UserRequest:hudson.slaves.SlaveComputer$SlaveVersion@399417d6
java.lang.UnsupportedClassVersionError: Failed to load hudson.slaves.SlaveComputer$SlaveVersion
at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:455)
at hudson.remoting.RemoteClassLoader.loadRemoteClass(RemoteClassLoader.java:287)
at hudson.remoting.RemoteClassLoader.loadWithMultiClassLoader(RemoteClassLoader.java:264)
at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:223)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at hudson.remoting.MultiClassLoaderSerializer$Input.resolveClass(MultiClassLoaderSerializer.java:132)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1986)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1850)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2160)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1667)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:503)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:461)
at hudson.remoting.UserRequest.deserialize(UserRequest.java:289)
at hudson.remoting.UserRequest.perform(UserRequest.java:189)
at hudson.remoting.UserRequest.perform(UserRequest.java:54)
at hudson.remoting.Request$2.run(Request.java:376)
at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:78)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:122)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.UnsupportedClassVersionError: hudson/slaves/SlaveComputer$SlaveVersion has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
at java.lang.ClassLoader.defineClass(ClassLoader.java:635)
at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:453)
... 24 more
Dec 07, 2022 11:35:23 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Terminated
Dec 07, 2022 11:35:33 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Performing onReconnect operation.
Dec 07, 2022 11:35:33 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: onReconnect operation completed.
Dec 07, 2022 11:35:33 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Locating server among [http://192.168.0.10:8080/]
Dec 07, 2022 11:35:33 AM org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver resolve
INFO: Remoting server accepts the following protocols: [JNLP4-connect, Ping]
Dec 07, 2022 11:35:33 AM org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver resolve
INFO: Remoting TCP connection tunneling is enabled. Skipping the TCP Agent Listener Port availability check
Dec 07, 2022 11:35:33 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Agent discovery successful
Agent address: 192.168.0.10
Agent port: 50000
Identity: 7f:1e:90:75:17:09:ed:c2:bb:4f:4c:59:21:3b:4e:fa
Dec 07, 2022 11:35:33 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Handshaking
Dec 07, 2022 11:35:33 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Connecting to 192.168.0.10:50000
Dec 07, 2022 11:35:33 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Trying protocol: JNLP4-connect
Dec 07, 2022 11:35:33 AM org.jenkinsci.remoting.protocol.impl.BIONetworkLayer$Reader run
INFO: Waiting for ProtocolStack to start.
Dec 07, 2022 11:35:43 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Remote identity confirmed: 7f:1e:90:75:17:09:ed:c2:bb:4f:4c:59:21:3b:4e:fa
Dec 07, 2022 11:35:43 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Connected
Dec 07, 2022 11:35:43 AM hudson.remoting.UserRequest perform
WARNING: LinkageError while performing UserRequest:hudson.slaves.SlaveComputer$SlaveVersion@4b5a098c
java.lang.UnsupportedClassVersionError: Failed to load hudson.slaves.SlaveComputer$SlaveVersion
at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:455)
at hudson.remoting.RemoteClassLoader.loadRemoteClass(RemoteClassLoader.java:287)
at hudson.remoting.RemoteClassLoader.loadWithMultiClassLoader(RemoteClassLoader.java:264)
at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:223)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at hudson.remoting.MultiClassLoaderSerializer$Input.resolveClass(MultiClassLoaderSerializer.java:132)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1986)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1850)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2160)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1667)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:503)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:461)
at hudson.remoting.UserRequest.deserialize(UserRequest.java:289)
at hudson.remoting.UserRequest.perform(UserRequest.java:189)
at hudson.remoting.UserRequest.perform(UserRequest.java:54)
at hudson.remoting.Request$2.run(Request.java:376)
at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:78)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:122)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.UnsupportedClassVersionError: hudson/slaves/SlaveComputer$SlaveVersion has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
at java.lang.ClassLoader.defineClass(ClassLoader.java:635)
at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:453)
... 24 more
Dec 07, 2022 11:35:43 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Terminated
Dec 07, 2022 11:35:53 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Performing onReconnect operation.
Dec 07, 2022 11:35:53 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: onReconnect operation completed.
Dec 07, 2022 11:35:53 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Locating server among [http://192.168.0.10:8080/]
Dec 07, 2022 11:35:53 AM org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver resolve
INFO: Remoting server accepts the following protocols: [JNLP4-connect, Ping]
Dec 07, 2022 11:35:53 AM org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver resolve
INFO: Remoting TCP connection tunneling is enabled. Skipping the TCP Agent Listener Port availability check
Dec 07, 2022 11:35:53 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Agent discovery successful
Agent address: 192.168.0.10
Agent port: 50000
Identity: 7f:1e:90:75:17:09:ed:c2:bb:4f:4c:59:21:3b:4e:fa
Dec 07, 2022 11:35:53 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Handshaking
Dec 07, 2022 11:35:53 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Connecting to 192.168.0.10:50000
Dec 07, 2022 11:35:53 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Trying protocol: JNLP4-connect
Dec 07, 2022 11:35:53 AM org.jenkinsci.remoting.protocol.impl.BIONetworkLayer$Reader run
INFO: Waiting for ProtocolStack to start.
Dec 07, 2022 11:36:03 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Remote identity confirmed: 7f:1e:90:75:17:09:ed:c2:bb:4f:4c:59:21:3b:4e:fa
Dec 07, 2022 11:36:03 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Connected
Dec 07, 2022 11:36:03 AM hudson.remoting.UserRequest perform
WARNING: LinkageError while performing UserRequest:hudson.slaves.SlaveComputer$SlaveVersion@faf9264
java.lang.UnsupportedClassVersionError: Failed to load hudson.slaves.SlaveComputer$SlaveVersion
at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:455)
at hudson.remoting.RemoteClassLoader.loadRemoteClass(RemoteClassLoader.java:287)
at hudson.remoting.RemoteClassLoader.loadWithMultiClassLoader(RemoteClassLoader.java:264)
at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:223)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at hudson.remoting.MultiClassLoaderSerializer$Input.resolveClass(MultiClassLoaderSerializer.java:132)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1986)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1850)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2160)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1667)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:503)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:461)
at hudson.remoting.UserRequest.deserialize(UserRequest.java:289)
at hudson.remoting.UserRequest.perform(UserRequest.java:189)
at hudson.remoting.UserRequest.perform(UserRequest.java:54)
at hudson.remoting.Request$2.run(Request.java:376)
at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:78)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:122)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.UnsupportedClassVersionError: hudson/slaves/SlaveComputer$SlaveVersion has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
at java.lang.ClassLoader.defineClass(ClassLoader.java:635)
at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:453)
... 24 more
Dec 07, 2022 11:36:03 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Terminated
Dec 07, 2022 11:36:13 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Performing onReconnect operation.
Dec 07, 2022 11:36:13 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: onReconnect operation completed.
Dec 07, 2022 11:36:13 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Locating server among [http://192.168.0.10:8080/]
Dec 07, 2022 11:36:13 AM org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver resolve
INFO: Remoting server accepts the following protocols: [JNLP4-connect, Ping]
Dec 07, 2022 11:36:13 AM org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver resolve
INFO: Remoting TCP connection tunneling is enabled. Skipping the TCP Agent Listener Port availability check
Dec 07, 2022 11:36:13 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Agent discovery successful
Agent address: 192.168.0.10
Agent port: 50000
Identity: 7f:1e:90:75:17:09:ed:c2:bb:4f:4c:59:21:3b:4e:fa
Dec 07, 2022 11:36:13 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Handshaking
Dec 07, 2022 11:36:13 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Connecting to 192.168.0.10:50000
Dec 07, 2022 11:36:13 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Trying protocol: JNLP4-connect
Dec 07, 2022 11:36:13 AM org.jenkinsci.remoting.protocol.impl.BIONetworkLayer$Reader run
INFO: Waiting for ProtocolStack to start.
Dec 07, 2022 11:36:23 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Remote identity confirmed: 7f:1e:90:75:17:09:ed:c2:bb:4f:4c:59:21:3b:4e:fa
Dec 07, 2022 11:36:23 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Connected
Dec 07, 2022 11:36:23 AM hudson.remoting.UserRequest perform
WARNING: LinkageError while performing UserRequest:hudson.slaves.SlaveComputer$SlaveVersion@4c47605e
java.lang.UnsupportedClassVersionError: Failed to load hudson.slaves.SlaveComputer$SlaveVersion
at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:455)
at hudson.remoting.RemoteClassLoader.loadRemoteClass(RemoteClassLoader.java:287)
at hudson.remoting.RemoteClassLoader.loadWithMultiClassLoader(RemoteClassLoader.java:264)
at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:223)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at hudson.remoting.MultiClassLoaderSerializer$Input.resolveClass(MultiClassLoaderSerializer.java:132)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1986)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1850)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2160)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1667)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:503)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:461)
at hudson.remoting.UserRequest.deserialize(UserRequest.java:289)
at hudson.remoting.UserRequest.perform(UserRequest.java:189)
at hudson.remoting.UserRequest.perform(UserRequest.java:54)
at hudson.remoting.Request$2.run(Request.java:376)
at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:78)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:122)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.UnsupportedClassVersionError: hudson/slaves/SlaveComputer$SlaveVersion has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
at java.lang.ClassLoader.defineClass(ClassLoader.java:635)
at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:453)
... 24 more
Dec 07, 2022 11:36:23 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Terminated
Dec 07, 2022 11:36:33 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Performing onReconnect operation.
Dec 07, 2022 11:36:33 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: onReconnect operation completed.
Dec 07, 2022 11:36:33 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Locating server among [http://192.168.0.10:8080/]
Dec 07, 2022 11:36:33 AM org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver resolve
INFO: Remoting server accepts the following protocols: [JNLP4-connect, Ping]
Dec 07, 2022 11:36:33 AM org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver resolve
INFO: Remoting TCP connection tunneling is enabled. Skipping the TCP Agent Listener Port availability check
Dec 07, 2022 11:36:33 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Agent discovery successful
Agent address: 192.168.0.10
Agent port: 50000
Identity: 7f:1e:90:75:17:09:ed:c2:bb:4f:4c:59:21:3b:4e:fa
Dec 07, 2022 11:36:33 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Handshaking
Dec 07, 2022 11:36:33 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Connecting to 192.168.0.10:50000
Dec 07, 2022 11:36:33 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Trying protocol: JNLP4-connect
Dec 07, 2022 11:36:33 AM org.jenkinsci.remoting.protocol.impl.BIONetworkLayer$Reader run
INFO: Waiting for ProtocolStack to start.
What’s wrong now?