1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/microshift-accessing-node-locally.adoc
2025-09-29 12:49:50 -04:00

47 lines
1.2 KiB
Plaintext

// 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
Use the following procedure to access the {microshift-short} node locally by using a `kubeconfig` file.
.Prerequisites
* You installed {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]
--