Deployment

Kubernetes manifest

1min

Deploying to Kubernetes via manifest

The following instructions will help you setup a basic deployment of the TruffleHog scanner in Kubernetes via manifest.

For Kubernetes we recommend using the Helm Chartļ»æ instead if possible. The helm chart makes it easier to customize the deployment and also includes options like a VerticalPodAutoscaler to right-size the resource requests for the deployment.

Kubernetes will ensure that TruffleHog stays running, manage your configuration secrets, and collect the logs.

1

Create the namespace

Shell
ļ»æ
2

Create the configuration secret

Important: The config file must be named config.yaml for the field name in the secret to be correctly named and match what the Deployment is looking for.

ļ»æ

Shell
ļ»æ
3

Create the deployment.yaml file

YAML
ļ»æ
4

Apply the manifest

Shell
ļ»æ
5

Wait for TruffleHog to be running

Shell
ļ»æ
6

Follow the logs

Shell
ļ»æ

ļ»æ