// Module included in the following assemblies:
//
// microshift_install_rpm/microshift-install-rpm.adoc
// microshift_install_rpm_ostree/microshift-embed-in-rpm-ostree.adoc
// microshift_configuring/microshift-node-access-kubeconfig.adoc

:_mod-docs-content-type: PROCEDURE
[id="accessing-microshift-node-locally_{context}"]
= Accessing the {microshift-short} node locally

[role="_abstract"]
Use the following procedure to access the {microshift-short} node locally by using a `kubeconfig` file.

.Prerequisites

* You installed the {oc-first}.

.Procedure

. Optional: to create a `~/.kube/` folder if your {op-system-base-full} machine does not have one, run the following command:
+
[source,terminal]
----
$ mkdir -p ~/.kube/
----

. Copy the generated local access `kubeconfig` file to the `~/.kube/` directory by running the following command:
+
[source,terminal]
----
$ sudo cat /var/lib/microshift/resources/kubeadmin/kubeconfig > ~/.kube/config
----

. Update the permissions on your `~/.kube/config` file by running the following command:
+
[source,terminal]
----
$ chmod go-r ~/.kube/config
----

.Verification

* Verify that {microshift-short} is running by entering the following command:
+
--
include::snippets/microshift-healthy-pods-snip.adoc[leveloffset=+2]
--
