Before installing agents, you must create an agent group.
To install agents in the web interface:
You can also upload the agent installation instructions as a .YAML file.
kubectl apply -f <
file
> -n <
namespace
>
Following the application of the instruction, the agent is installed on all worker nodes of the cluster.
The solution automatically updates the agent installation instructions if you change the following settings specified for the agent group:
Agents need access to the Kaspersky Container Security API. If connectivity between the agents and the solution API can only be achieved with a proxy server, you can add a proxy server configuration to the agent installation instructions by creating a special secret.
To add a proxy server configuration to the agent installation instructions:
---
apiVersion: v1
kind: Secret
metadata:
name: http-client-proxy
namespace: kcs-namespace
type: opaque
data:
HTTP_CLIENT_PROXY: 'aHR0cDovL3Byb3h5LmV4YW1wbGUuY29tOjgwODA='
---
ENV
section of the DaemonSet and Deployment resources in the agent installation instructions:
- name: HTTP_CLIENT_PROXY
valueFrom:
secretKeyRef:
name: http-client-proxy
key: HTTP_CLIENT_PROXY
You must copy or download the updated instruction in a YAML file again, and then apply it by using the kubectl apply -f <
file
> -n <
namespace
> command.
Otherwise, changes of these parameters are not applied to installed agents.
Before updating Kaspersky Container Security agents to version 2.1.x, you must first delete the installed agents by following the agent installation instructions from the previous version or by running the following command: kubectl delete -f <
file
> -n <
namespace
>
. After that, you need to apply the agent installation instructions for Kaspersky Container Security version 2.1.x.