Jenkins Job Error - Jnlp -- terminated

Jenkins is running in Kubernetes. After upgrading to the following Jenkins version, from time to time, I get the JNLP terminated errors during the pipeline steps.

Jenkins version: Jenkins 2.387.2
Kubernetes plugins version: 3852.v41ea_166a_ed1b_

  • jnlp – terminated (255)
    -----Logs-------------
    SEVERE: Handshake error.
    io.jenkins.remoting.shaded.jakarta.websocket.DeploymentException: Handshake error.
    at io.jenkins.remoting.shaded.org.glassfish.tyrus.client.ClientManager$3$

Any help would be appreciated.

Hello @hatif and welcome to this community :wave:

When you write

Jenkins is running in Kubernetes

you mean the controller and the agents, right?
Which agent image are you using?