document control plane status checks

amd64-and-arm64
Kelsey Hightower 2025-04-08 07:42:00 -07:00
parent b6e493e463
commit d1f7e159e1
1 changed files with 4 additions and 4 deletions

View File

@ -122,22 +122,22 @@ mv kube-scheduler.service /etc/systemd/system/
> Allow up to 10 seconds for the Kubernetes API Server to fully initialize. > Allow up to 10 seconds for the Kubernetes API Server to fully initialize.
You can check if the Kubernetes API Server is active by running the following command: You can check if any of the control plane components are active using the `systemctl` command. For example, to check if the `kube-apiserver` fully initialized, and active, run the following command:
```bash ```bash
systemctl is-active kube-apiserver systemctl is-active kube-apiserver
``` ```
For a more detailed status check run the following command: For a more detailed status check, which includes additional process information and log messages, use the `systemctl status` command:
```bash ```bash
systemctl status kube-apiserver systemctl status kube-apiserver
``` ```
If you run into any errors or want to view the logs run the following command: If you run into any errors, or want to view the logs for any of the control plane components, use the `journalctl` command. For example, to view the logs for the `kube-apiserver` run the following command:
```bash ```bash
journalctl -u kube-apiserver --no-pager journalctl -u kube-apiserver
``` ```
### Verification ### Verification