5.2.14. Logging in to the cluster
You can log in to your cluster as a default system user by exporting the cluster
kubeconfig file. The
kubeconfig file contains information about the cluster that is used by the CLI to connect a client to the correct cluster and API server. The file is specific to a cluster and is created during OpenShift Container Platform installation.
- Deploy an OpenShift Container Platform cluster.
$ export KUBECONFIG=<installation_directory>/auth/kubeconfig 1
<installation_directory>, specify the path to the directory that you stored the installation files in.
Verify you can run
occommands successfully using the exported configuration:
$ oc whoami