Kubernetes Installation
You can install the Management Console on a single Docker host or in a dedicated Kubernetes cluster.
Install the ThreatStryker Management Console
The following instructions explain how to install the ThreatStryker console on a Kubernetes Cluster, and configure external access to the Console.
-
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 Provider Storage Class AWS gp3 (https://docs.aws.amazon.com/eks/latest/userguide/ebs-csi.html) GCP standard 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
-
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
-
Install the ThreatStryker Console
helm repo add deepfence https://deepfence-helm-charts.s3.amazonaws.com/enterprise
# helm show values deepfence/deepfence-console --version 2.0.2 | less
helm install deepfence-console deepfence/deepfence-console \
--set imagePullSecret.username="<deepfence_username>" \
--set imagePullSecret.password="<deepfence_password>" \
--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
-
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-console-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
vi 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
vi 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