kubernetes plugin: Failed to start websocket connection after 5 attempts

This issue is archived. You can view it, but you can't modify it. Learn more

      Our Jenkins controller is on AWS ec2 and trying to connect with  EKS cluster. Getting "Failed to start websocket connection after 5 attempts" while executing the test pipeline job.

       

      Pipeline script:

      pipeline {
        agent {
          kubernetes

      {       yaml '''         apiVersion: v1         kind: Pod         metadata:           labels:             some-label: some-label-value         spec:           containers:           - name: maven             image: maven:alpine             command:             - cat             tty: true           - name: busybox             image: busybox             command:             - cat             tty: true         '''       retries 2     }

        }
        stages {
          stage('Run maven') {
            steps {
              container('maven')

      {           sh 'mvn -version'         }

              container('busybox')

      {           sh '/bin/busybox'         }

            }
          }
        }
      }

       

       

      Error log: 

       PFA

       

      Plugin versions:

      Kubernetes Client API PluginVersion6.4.1-208.vfe09a_9362c2c
      Kubernetes Credentials PluginVersion0.10.0
      Kubernetes pluginVersion3883.v4d70a_a_a_df034

            Assignee:
            Unassigned
            Reporter:
            ravi
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: