Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-70690

kubernetes plugin: Failed to start websocket connection after 5 attempts

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • kubernetes-plugin
    • None

      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

            Unassigned Unassigned
            ravi_wankhede ravi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: