Chapter 4. Retrieving the OpenShift Container Platform Management Token
After enabling cluster metrics on your OpenShift Container Platform deployment, retrieve the management token while you are still logged in to the OpenShift Container Platform host. This will be required later in Chapter 6, Adding OpenShift Container Platform as a Container Provider.
- For OpenShift Container Platform 3.3 or later
- Provide the token needed to add an OpenShift Container Platform 3.3 (or later) provider.
Run the following to obtain the token needed to add an OpenShift Container Platform 3.3 (or later) provider:
# oc sa get-token -n management-infra management-admin eyJhbGciOiJSUzI1NiI...
- For OpenShift Enterprise 3.2
- Provide the token needed to add an OpenShift Enterprise 3.2 provider.
Run the following to obtain the token needed to add an OpenShift Enterprise 3.2 provider:
# oc sa get-token -n management-infra management-admin eyJhbGciOiJSUzI1NiI...
- For OpenShift Enterprise 3.1
- Provide the token needed to add an OpenShift Enterprise 3.1 provider.
Run the following to obtain the token needed to add an OpenShift Enterprise 3.1 provider:
Obtain the
managementservice account token name:# oc describe sa -n management-infra management-admin ... Tokens: management-admin-token-0f3fh management-admin-token-q7a87Select and describe one of the tokens to retrieve the full token output, replacing
management-admin-token-0f3fhwith the name of your token:# oc describe secret -n management-infra management-admin-token-0f3fh ... Data ==== token: eyJhbGciOiJSUzI1NiI...

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.