// Module included in the following assemblies:
//
// * microshift/microshift_configuring/microshift-node-access-kubeconfig.adoc

:_mod-docs-content-type: CONCEPT
[id="microshift-kubeconfig-local-access_{context}"]
= Local access kubeconfig file

[role="_abstract"]
The local access `kubeconfig` file in {product-title} is written to `/var/lib/microshift/resources/kubeadmin/kubeconfig`. This `kubeconfig` file provides access to the API server by using `localhost`. Use this file when you connect to the node locally.

.Example contents of `kubeconfig` for local access
[source,yaml]
----
clusters:
- cluster:
    certificate-authority-data: <base64_encoded_CA>
    server: https://localhost:6443
----

The `localhost` `kubeconfig` file can only be used from a client connecting to the API server from the same host. The certificates in the file do not work for remote connections.