Disable deployments that run CSI snapshot implementations
To prevent the installation of CSI implementation pods, disable the deployments that run CSI snapshot implementations. This configuration conserves system resources by ensuring that snapshot components are not deployed when they are not required.
|
|
Use the procedure if you are defining the configuration file before installing and running MicroShift. If MicroShift is already started, the CSI snapshot implementation will be running. You must manually remove the implementation by following the uninstallation instructions. |
|
|
MicroShift does not delete CSI snapshot implementation pods. You must configure MicroShift to disable installation of the CSI snapshot implementation pods during the startup process. |
-
Disable installation of the CSI snapshot controller by entering the
optionalCsiComponentsvalue under thestoragesection of the MicroShift configuration file in/etc/microshift/config.yaml:# ... storage: {} # ...where:
storage-
Specifies the storage details. You can choose to not define
optionalCsiComponents. If you do specify theoptionalCsiComponentsfield, valid values include: an empty value ([]) or a single empty string element ([""]),snapshot-controller, ornone. A value ofnoneis mutually exclusive with all other values.If the
optionalCsiComponentsvalue is empty or null, MicroShift defaults to deployingsnapshot-controller.
-
After the
optionalCsiComponentsfield is specified with a supported value in theconfig.yaml, start MicroShift by running the following command:$ sudo systemctl start microshiftMicroShift does not redeploy the disabled components after a restart.