Upgrade in Kubernetes

To upgrade the Kaspersky Scan Engine Docker image in Kubernetes:

  1. 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.
  2. 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.
  3. Import the new Docker image for Kubernetes to the local Docker registry:

    ICAP mode

    docker load -i /opt/kaspersky/ScanEngine/images/kaspersky_scanengine_icap.tar

    HTTP mode

    docker load -i /opt/kaspersky/ScanEngine/images/kaspersky_scanengine_httpd.tar

  4. Remove the outdated Docker image:

    ICAP mode

    docker rmi kaspersky/scanengine_icapd:%VERSION%

    HTTP mode

    docker rmi kaspersky/scanengine_httpd:%VERSION%

    Here, %VERSION% is the previous version of Kaspersky Scan Engine.

  5. 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:
    1. 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.
    2. On the local host, run the following command:

      /opt/kaspersky/ScanEngine/tools/kav_encrypt -m %mode% -p %USERNAME%:%PASSWORD%

    Here, %USERNAME% and %PASSWORD% are the username and password used for proxy authentication.

    Import the new klScanEngineUI.xml configuration file to ConfigMap Kubernetes.

  6. 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.

  7. 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:

    image: kaspersky/scanengine_httpd:2.1.0.1613

Page top