To upgrade the Kaspersky Scan Engine Docker image in Kubernetes:
Unpack the following objects from the distribution kit containing the new version of Kaspersky Scan Engine:
Place the Kaspersky Scan Engine Docker image to images.
If Kaspersky Scan Engine connects to Kaspersky Security Network (KSN) and the anti-virus database through a proxy server, place the kav_encrypt utility to /opt/kaspersky/ScanEngine/tools.
If you use the Kaspersky Scan Engine GUI, place migrate.sql to /opt/kaspersky/ScanEngine/conf.
Add the new elements to the Kaspersky Scan Engine configuration files if you need those elements. The elements added in the new version of Kaspersky Scan Engine are described in Kaspersky Scan Engine online help. Import the new configuration file to ConfigMap Kubernetes.
Import the new Docker image for Kubernetes to the local Docker registry:
Here, %VERSION% is the previous version of Kaspersky Scan Engine.
If Kaspersky Scan Engine connects to Kaspersky Security Network (KSN) and the anti-virus database through a proxy server, encrypt the username and password for proxy authentication:
Make sure the /opt/kaspersky/ScanEngine/httpsrv directory on the local host contains the kl_scanengine_db.key file. If this file does not exist, prepare it for use.
You need an encryption key to encrypt data (usernames and passwords) with the kav_encrypt utility.
Make sure all users have read permissions to the kl_scanengine_db.key file.
If you use the kse_docker_control.sh script to run containers, open kse_docker_control.sh for editing, and then specify the path to kl_scanengine_db.key in the KEY_FILE_DIRECTORY parameter.
If you do not use the kse_docker_control.sh script, you need to specify the parameter for mounting kl_scanengine_db.key to the /opt/kaspersky/ScanEngine/httpsrv directory inside the container each time you run the container.
Here, %USERNAME% and %PASSWORD% are the username and password used for proxy authentication.
Import the new klScanEngineUI.xml configuration file to ConfigMap Kubernetes.
If you use the Kaspersky Scan Engine GUI, update the kavebase database with the following command:
psql -d kavebase -a -f /opt/kaspersky/ScanEngine/conf/migrate.sql
The above command imports the contents of /opt/kaspersky/ScanEngine/conf/migrate.sql to PostgreSQL.
In the /opt/kaspersky/ScanEngine/containers/image element of the Kubernetes YAML file (kaspersky_icapd_kubernetes.yaml for ICAP mode, kaspersky_httpd_kubernetes.yaml for HTTP mode) specify the new version of the Kaspersky Scan Engine Docker image. For example: