mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
55 lines
2.0 KiB
Plaintext
55 lines
2.0 KiB
Plaintext
//Module included in the following assemblies:
|
|
//
|
|
//* microshift_troubleshooting/microshift-troubleshoot-cluster
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="microshift-check-cluster-status_{context}"]
|
|
= Checking the status of a cluster
|
|
|
|
You can check the status of a {microshift-short} cluster or see active pods. Given in the following procedure are three different commands you can use to check cluster status. You can choose to run one, two, or all commands to help you get the information you need to troubleshoot the cluster.
|
|
|
|
.Procedure
|
|
* Check the system status, which returns the cluster status, by running the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ sudo systemctl status microshift
|
|
----
|
|
+
|
|
If {microshift-short} fails to start, this command returns the logs from the previous run.
|
|
+
|
|
.Example healthy output
|
|
[source,text]
|
|
----
|
|
● microshift.service - MicroShift
|
|
Loaded: loaded (/usr/lib/systemd/system/microshift.service; enabled; preset: disabled)
|
|
Active: active (running) since <day> <date> 12:39:06 UTC; 47min ago
|
|
Main PID: 20926 (microshift)
|
|
Tasks: 14 (limit: 48063)
|
|
Memory: 542.9M
|
|
CPU: 2min 41.185s
|
|
CGroup: /system.slice/microshift.service
|
|
└─20926 microshift run
|
|
|
|
<Month-Day> 13:23:06 i-06166fbb376f14a8b.<hostname> microshift[20926]: kube-apiserver I0528 13:23:06.876001 20926 controll>
|
|
<Month-Day> 13:23:06 i-06166fbb376f14a8b.<hostname> microshift[20926]: kube-apiserver I0528 13:23:06.876574 20926 controll>
|
|
# ...
|
|
----
|
|
|
|
* Optional: Get comprehensive logs by running the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ sudo journalctl -u microshift
|
|
----
|
|
+
|
|
[NOTE]
|
|
====
|
|
The default configuration of the `systemd` journal service stores data in a volatile directory. To persist system logs across system starts and restarts, enable log persistence and set limits on the maximum journal data size.
|
|
====
|
|
|
|
* Optional: If {microshift-short} is running, check the status of active pods by entering the following command:
|
|
+
|
|
--
|
|
include::snippets/microshift-healthy-pods-snip.adoc[leveloffset=+1]
|
|
-- |