How to add a custom CA/CA-chain to /var/run/secrets/kubernetes.io/serviceaccount/ca.crt in Openshift Container Platform 4.

Solution Verified - Updated -

Issue

  • How to add a custom CA/CA-chain to /var/run/secrets/kubernetes.io/serviceaccount/ca.crt so that the CA will be available for all the pods in the same location.
  • Following the steps as per Configuring a custom PKI to add a custom CA to the OCP 4.x cluster does not add the same CA to /var/run/secrets/kubernetes.io/serviceaccount/ca.crt

Environment

  • Openshift Container Platform
    • 4.7

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