Chapter 2. Stopping and starting MicroShift
You can stop or start MicroShift for a variety of reasons, including a fresh installation, adding optional RPM packages, and troubleshooting.
2.1. Starting the MicroShift service Copy linkLink copied to clipboard!
Use the following procedure to start the MicroShift service.
Prerequisites
- You have installed MicroShift from an RPM package.
Procedure
As a root user, start the MicroShift service by entering the following command:
sudo systemctl start microshift
$ sudo systemctl start microshift
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Optional: To configure your RHEL machine to start MicroShift when your machine starts, enter the following command:
sudo systemctl enable microshift
$ sudo systemctl enable microshift
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Optional: To disable MicroShift from automatically starting when your machine starts, enter the following command:
sudo systemctl disable microshift
$ sudo systemctl disable microshift
Copy to Clipboard Copied! Toggle word wrap Toggle overflow NoteThe first time that the MicroShift service starts, it downloads and initializes the container images for MicroShift. As a result, it can take several minutes for MicroShift to start the first time that the service is deployed. Boot time is reduced for subsequent starts of the MicroShift service.
2.2. Stopping the MicroShift service Copy linkLink copied to clipboard!
Use the following procedure to stop the MicroShift service.
Prerequisites
- The MicroShift service is running.
Procedure
Enter the following command to stop the MicroShift service:
sudo systemctl stop microshift
$ sudo systemctl stop microshift
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Workloads deployed on MicroShift might continue running even after the MicroShift service has been stopped. Enter the following command to display running workloads:
sudo crictl ps -a
$ sudo crictl ps -a
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Enter the following commands to stop the deployed workloads:
sudo systemctl stop kubepods.slice
$ sudo systemctl stop kubepods.slice
Copy to Clipboard Copied! Toggle word wrap Toggle overflow