To configure Kubernetes for working with Kaspersky Scan Engine:
Make sure that the loaded image is available in Kubernetes.
If you use Minikube with QEMU (or with any other driver), import the Docker image from the local Docker repository to Minikube:
eval $(minikube docker-env)
kaspersky
:kubectl create namespace kaspersky
ConfigMaps
object for the directory that contains the Kaspersky Scan Engine configuration files (see section "Part 1. Before you begin"):kubectl create configmap kl-configuration-file -n kaspersky --from-file=%path to the directory with the configuration files%
ConfigMaps
object was created successfully:kubectl get configmap -n kaspersky
The output should contain name kl-configuration-file
.
kubectl create secret generic kl-license-key -n kaspersky --from-file=%path to the key file%
kubectl create secret generic kl-license-key -n kaspersky --from-file=%path to the 'license' file%
kubectl create secret generic kl-httpd-cert -n kaspersky --from-file=%path to the kavhttpd.cert file%
kubectl create secret generic kl-httpd-key -n kaspersky --from-file=%path to the kavhttpd.key file%
kl_scanengine_db.key
:kubectl create secret generic kl-secret-key -n kaspersky --from-file=%path to the kl_scanengine_db.key file%
kl_scanengine_cert.pem
file:kubectl create secret generic kl-webui-cert -n kaspersky --from-file=%path to the kl_scanengine_cert.pem file%
kl_scanengine_private.pem
file:kubectl create secret generic kl-webui-key -n kaspersky --from-file=%path to the kl_scanengine_private.pem file%
kubectl get secret -n kaspersky
The output should contain names of all created Secrets.
LoadBalancer
service is working.If you are using Minikube with QEMU or any other driver, LoadBalancer
can be set up with the following command:
minikube tunnel