Configuring a proxy server

In version 2.0, Kaspersky Container Security can proxy requests from private corporate networks to the external environment. The settings for connection through a proxy server are configured using the following environment variables in the Helm Chart package, which is included in the solution distribution kit:

Kaspersky Container Security accesses the Kaspersky servers to get information about the license as well as updates for the anti-malware databases and vulnerabilities databases.

The Kaspersky registry can also be used to download images of the solution during its deployment and update, if you are not using a private registry or a proxy registry.

In the proxy server configuration, you must add masks for domain names of Kaspersky servers to the list of allowed ones. The following are the supported mask options: * .kaspersky.com, .kaspersky.com, * .kaspersky-labs.com, and .kaspersky-labs.com (the syntax that your proxy server supports is specified in the proxy server documentation). To access resources, you must open ports 80 and 443.

You can specify the port in the proxy server parameters using IP address or FQDN.

Special characters must be escaped.

The table below lists the Kaspersky Container Security components that can use environment variables, and also indicates the purpose of these environment variables.

Environment variables used by Kaspersky Container Security components

Component

Environment variable

Purpose

kcs-ih

HTTP_PROXY

HTTPS_PROXY

NO_PROXY

Getting access to external image registries that are not available from the Kaspersky Container Security namespace.

kcs-ih

SCANNER_PROXY

Update of the databases of the File Threat Protection scanner using Kaspersky update servers.

kcs-middleware

HTTP_PROXY

HTTPS_PROXY

NO_PROXY

Getting access to external image registries that are not available from the Kaspersky namespace.

kcs-scanner

SCANNER_PROXY

Update of the vulnerability scanner databases using Kaspersky update servers.

kcs-licenses

LICENSE_PROXY

Check and update of information about the current license using Kaspersky license servers.

You can configure the operation of agents using a proxy server, and the proxy server will pass requests to the Kaspersky Container Security installation address.

To configure the operation of agents using a proxy server:

  1. Under Components → Agents, in the table with the list of agent groups, click the link in the agent group name.
  2. In the window that opens, go to the Node monitoring tab and do the following:
    • Ensure that the File Threat Protection component is enabled by using the Disable/Enable toggle switch.
    • In the File Threat Protection section, specify the proxy server in Anti-malware database update proxy.
    • Click Save.
  3. Click the Deployment data tab.
  4. Copy or download the updated agent deployment instruction in a .YAML file again, and then apply it by using the kubectl apply -f <file> -n <namespace> command.
  5. Configure the HTTP_PROXY, HTTPS_PROXY, or NO_PROXY environment variables in the Deployment and DaemonSet objects of the agents.

Page top