// Module included in the following assemblies:
//
// * microshift_storage/microshift-storage-plugin-overview.adoc
// * microshift_configuring/microshift-disable-lvms-csi-provider-csi-snapshot.adoc

:_mod-docs-content-type: PROCEDURE
[id="microshift-disabling-lvms-csi-snapshot_{context}"]
= Disabling deployments that run CSI snapshot implementations

[role="_abstract"]
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.

[IMPORTANT]
====
Use the procedure if you are defining the configuration file before installing and running {microshift-short}. If {microshift-short} is already started, the CSI snapshot implementation will be running. You must manually remove the implementation by following the uninstallation instructions.
====

[NOTE]
====
{microshift-short} does not delete CSI snapshot implementation pods. You must configure {microshift-short} to disable installation of the CSI snapshot implementation pods during the startup process.
====

.Procedure

. Disable installation of the CSI snapshot controller by entering the `optionalCsiComponents` value under the `storage` section of the {microshift-short} configuration file in `/etc/microshift/config.yaml`:
+
[source,yaml]
----
# ...
  storage: {}
# ...
----
+
where:
+
`storage`:: Specifies the storage details. You can choose to not define `optionalCsiComponents`. If you do specify the `optionalCsiComponents` field, valid values include: an empty value (`[]`) or a single empty string element (`[""]`), `snapshot-controller`, or `none`. A value of `none` is mutually exclusive with all other values.
+
[NOTE]
====
If the `optionalCsiComponents` value is empty or null, {microshift-short} defaults to deploying `snapshot-controller`.
====

. After the `optionalCsiComponents` field is specified with a supported value in the `config.yaml`, start {microshift-short} by running the following command:
+
[source,terminal]
----
$ sudo systemctl start microshift
----
+
[NOTE]
====
{microshift-short} does not redeploy the disabled components after a restart.
====