If the installation of Kaspersky Next XDR Expert failed, you can restart the installation. Installation failure may occur during installation of Bootstrap or installation of Kaspersky Next XDR Expert components. The steps needed to reinstall Kaspersky Next XDR Expert depends on whether the Kubernetes cluster was deployed when the installation error occurred.
To determine the stage at which the installation failed,
Run the following command to view the list of all installed Kaspersky Next XDR Expert components:
./kdt state
If the Bootstrap installation error occurs, KDT displays a message that Bootstrap is not installed. In this case, you have to manually uninstall the directories created during the deployment.
If Bootstrap is installed successfully, it will have the Success
status in the command output. This means that a Kaspersky Next XDR Expert components installation error occurred. In this case, you have to reinstall the components that were not installed correctly or reinstall the entire solution. In the command output, such components have the Failed
status.
Reinstalling Kaspersky Next XDR Expert if Bootstrap is not installed
To restart the Kaspersky Next XDR Expert installation:
If a failure occurred during the Bootstrap installation stage, this will be reflected in the log. In this case, Bootstrap has not been installed and the Kubernetes cluster has not been created.
.kdt
directory, and then remove the cluster.config
file.Remove the contents of the following directories:
Required directories:
/etc/k0s/
/var/lib/k0s/
/usr/libexec/k0s/
/usr/local/bin/
(remove only the k0s
file)Optional directories:
/var/lib/containerd/
/var/cache/k0s/
/var/cache/kubelet/
/var/cache/containerd/
You can remove the /var/lib/containerd/
and /var/cache/containerd/
directories if the containerd service is used only for the function of Kaspersky Next XDR Expert. Otherwise, data contained in the /var/lib/containerd/
and /var/cache/containerd/
directories may be lost.
The contents of the /var/cache/k0s/
, /var/cache/kubelet/
, and /var/cache/containerd/
directories are automatically removed after you restart the target host. You do not have to clear these folders manually.
Reinstalling Kaspersky Next XDR Expert if Bootstrap is installed
To reinstall incorrectly installed Kaspersky Next XDR Expert components:
./kdt state -l <
component_name
>
You can also output all diagnostic information about Kaspersky Next XDR Expert components by using the command:
./kdt logs get --to-archive
./kdt apply -k <
full_path_to_transport_archive
>
./kdt apply -k <
full_path_to_transport_archive
> -i <
full_path_to_configuration_file
>
KDT reinstalls only the incorrectly installed Kaspersky Next XDR Expert components.
./kdt apply --force -k <
full_path_to_XDR_updates_archive
> -i <
full_path_to_configuration_file
>
If reinstalling the components did not fix an installation error, you can uninstall the entire solution.
To restart the Kaspersky Next XDR Expert installation:
./kdt logs get --to-archive
./kdt remove --all
./kdt apply --force -k <
full_path_to_XDR_updates_archive
> -i <
full_path_to_configuration_file
>