Skip to main content
Version: v2.0 (deprecated)

Kubernetes Installation

You can install the Management Console on a single Docker host or in a dedicated Kubernetes cluster.

Install the ThreatMapper Management Console

The following instructions explain how to install the ThreatMapper console on a Kubernetes Cluster, and configure external access to the Console.

  1. Configure Persistent Volume:

    Cloud Managed

    If the Kubernetes cluster is hosted in a cloud provider, it is recommended to use cloud managed storage

    kubectl get storageclass
    Cloud ProviderStorage Class
    AWSgp3 (https://docs.aws.amazon.com/eks/latest/userguide/ebs-csi.html)
    GCPstandard

    Self-Managed: OpenEBS

    helm repo add openebs https://openebs.github.io/charts
    helm install openebs --namespace openebs openebs/openebs --create-namespace

    ... and wait (-w) for the openebs pods to start up:

    kubectl get pods -o wide --namespace openebs -w
  2. Install the metrics server (optional)

    If the metrics server is not already installed (kubectl get deployment metrics-server -n kube-system), install as follows:

    kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml
  3. Install the ThreatMapper Console

    helm repo add deepfence https://deepfence-helm-charts.s3.amazonaws.com/threatmapper

    # helm show values deepfence/deepfence-console --version 2.0.2 | less

    helm install deepfence-console deepfence/deepfence-console \
    --set global.imageTag=2.0.1 \
    --set global.storageClass=gp3 \
    --namespace deepfence-console \
    --create-namespace \
    --version 2.0.2

    ... and wait for the pods to start up:

    kubectl get pods --namespace deepfence-console -o wide -w
  4. Enable external access with the deepfence-router helm chart:

    Deploy deepfence-router:

    # helm show values deepfence/deepfence-router --version 2.0.1

    helm install deepfence-router deepfence/deepfence-router \
    --namespace deepfence-console \
    --create-namespace \
    --version 2.0.1

    ... and wait for the cloud platform to deploy an external load-balancer:

    kubectl get svc -w deepfence-router --namespace deepfence-console

Now proceed to the Initial Configuration.

Fine-tune the Helm deployment

Console Helm Chart

helm show values deepfence/deepfence-console --version 2.0.2 > deepfence_console_values.yaml

# Make the changes in this file and save
vim deepfence_console_values.yaml

helm install -f deepfence_console_values.yaml deepfence-console deepfence/deepfence-console \
--namespace deepfence-console \
--create-namespace \
--version 2.0.2

Router Helm Chart

helm show values deepfence/deepfence-router --version 2.0.1 > deepfence_router_values.yaml

# Make the changes in this file and save
vim deepfence_router_values.yaml

helm install -f deepfence_router_values.yaml deepfence-router deepfence/deepfence-router \
--namespace deepfence-console \
--create-namespace \
--version 2.0.1

Delete the ThreatMapper Management Console

To delete the ThreatMapper Management Console

helm delete deepfence-router -n deepfence-console
helm delete deepfence-console -n deepfence-console