Edit on GitHub
Report issue
Page history

Kubernetes ClamAV container

Author(s): @ianmaddox ,   Published: 2019-03-21

This example provides a Clam antivirus Docker image that performs regularly scheduled scans.

This example is designed to be run on Google Container-Optimized OS, but it should work with most other Docker servers.

ClamAV is an open source antivirus engine for detecting trojans, viruses, malware, and other malicious threats.

Basic usage

  1. Build your Docker image.
  2. Deploy that image to your Kubernetes cluster.
  3. Use Daemonsets to configure the new workload to run one scanner pod per node.
  4. Ensure scan-required paths within other pods are mounted as named volumes so they will be included in the scan of the node.

For more information, see Installing antivirus and file integrity monitoring on Container-Optimized OS.

Submit a Tutorial

Share step-by-step guides


Request a Tutorial

Ask for community help


GCP Tutorials

Tutorials published by GCP


Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see our Site Policies. Java is a registered trademark of Oracle and/or its affiliates.