Kubernetes Setup

Central Hub can also be deployed in a Kubernetes cluster using the MD Core helm chart available here: https://github.com/OPSWAT/metadefender-k8s. The chart can be configured to deploy the Central Hub containers alongside MD Core.

Example values for enabling the MD Hub module can be found in the helm_charts/mdcore-mdhub-module.yml file. By setting the ENABLED_MODULES: "mdhub" value, the chart configures and deploys the following additional pods:

  • redis (open-source caching server)
  • rabbitmq (open-source messaging broker)
  • md-hub (known as MetaDefender Core Hub)
  • md-nas (central file storage server, known as MetaDefender Core NAS)

In addition to enabling the mdhub module, the md-nas pod also requires an ssl certificate and certificate key that can be configured from the values file:

YAML
Copy

The md-hub service listens by default on port 8889 as a ClusterIP. Changing the port from the values file also updates the configuration file mounted in the md-hub container.

YAML
Copy

Credentials can also be configured in the values file and are saved as secrets, they are randomly generated if left unset. Once configured, the entire MD Core and Hub stack can be deployed with helm:

Bash
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
On This Page
Kubernetes Setup