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:
CERT_KEY
<SET_MD_NAS_CERT_KEY>
CERT
<SET_MD_NAS_CERT>
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.
core_components
md-hub
ports
port8889
service_type ClusterIP
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:
helm install my_mdcore ./helm_charts/mdcore -f mdcore-mdhub-module.yml