Deploy a custom ThreatMapper Console
You should first build the management console and push the images to a suitable repository. You can then adapt the standard installation instructions (Docker, Kubernetes) to refer to your custom images rather than the Deepfence-provided ones.
Installing and Running the Management Console on a Docker Host
Refer to the Docker Installation Instructions along with the modifications below.
-
Download the file docker-compose.yml to the system that will host the Console
wget https://github.com/deepfence/ThreatMapper/raw/release-2.2/deployment-scripts/docker-compose.yml
-
Execute the following command to install and start the Console. Note the override to specify your repository
myorg
, rather than thedeepfenceio
default:ACC=myorg # the name of the dockerhub account
docker login -u $ACC # log in to the account
IMAGE_REPOSITORY=$ACC docker-compose -f docker-compose.yml up --detach
Installing and Running the Management Console in a Kubernetes Cluster
Refer to the Kubernetes Installation Instructions along with the modifications below.
-
Prepare the cluster, installing the storage driver and metrics service
Follow the instructions to install the OpenEBS storage and metrics server: Installation Instructions
-
Install your Management Console
We will install the Management Console using the helm chart, but overriding the repository source for the images:
helm repo add deepfence https://deepfence-helm-charts.s3.amazonaws.com/threatmapper
helm repo update
# Create the values file
helm show values deepfence/deepfence-console --version 2.2.2 > deepfence_console_values.yamlEdit the
deepfence_console_values.yaml
file, replacing theimage: repository:
value to point to your repository, and making any other changes as needed.Install the management console:
helm install -f deepfence_console_values.yaml deepfence-console deepfence/deepfence-console --version 2.2.2
Full instructions can be found in the Console helm chart documentation.
-
Optional: enable external access with the
deepfence-router
package:Refer to the instructions to install the Router, typically as follows:
# Create the values file
helm show values deepfence/deepfence-router --version 2.2.2 > deepfence_router_values.yamlEdit the
deepfence_router_values.yaml
file, replacing theimage: repository:
value to point to your repository, and making any other changes as needed.helm install -f deepfence_router_values.yaml deepfence-router deepfence/deepfence-router --version 2.2.2