Skip to content

Injector helm

Abstract

The punch data injector lets you generate or consume arbitrary data. It is an essential tool for testing your apps, platforms or perform capacity planning. Punch provides a helm to deploy it on a Kubernetes cluster. Here you can find all details to use it

Deploy punch injector

Command example :

helm install myrelease $PUNCHPLATFORM_HELM_CHARTS/injector \
    --set-file injector-conf=injector_config.json \
    -f install_config.yaml \
    --namespace mynamespace

Configuration

Files

Files :

File Purpose
install_config.yaml Kube objects configuration with the docker image, secrets and ConfigMaps
injector_config.json Injector configuration with destination, message patterns, etc ...

install_config file example

Example :

secrets:
  privateRegistryToken: <secret>

image:
  replicaCount: 1
  repository: gitlab.thalesdigital.io:5005/punch/product/pp-punch/log-injector
  pullPolicy: Always
  tag: "latest"
  imagePullSecrets:
      - name: "log-injector"

# Log injector conf (must be the same as command line one)
# do not change this section
configMap:
  - id: injector-conf
    dest: /opt/punch/conf/injector.json

injector_config file example

The json or hjson file describing the log injector runtime configuration.

Info

Refer to :