Intermittent API requests timeout in OpenShift with x509

Solution Verified - Updated -

Issue

  • Experiencing a random kube-apiserver request timeout issue
  • Webhook timeouts with an x509 Certificate Signed by Unknown Authority error.
  • As an example, sometimes Jenkins pipeline fails during resource GET (services, secrets, deploymentconfig):

    ERROR: Unable to retrieve object names: selector([name=deploymentconfig],[labels=null],[namelist=null],[projectlist=null]); action failed: {err=Unable to connect to the server: dial tcp 10.10.10.10:6443: i/o timeout
    , verb=get, cmd=oc --server=https://api.example.com:6443 --certificate-authority=/tmp/workspace/CD-XXX-XXXX/CD-XXX/DeployApp-OCP/servercaxxxxxx.crt --namespace=example-namespace --token=XXXXX get deploymentconfig -o=name --ignore-not-found , out=, status=1}
    Finished: FAILURE
    

Environment

  • Red Hat OpenShift Container Platform 4.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content