predator

by Helm

Helm chartv1.7.0App 1.7

Predator is an open-source distributed performance testing platform

About this chart

Predator Helm Chart

Predator is an open-source distributed performance testing platform for APIs.

Predator manages the entire lifecycle of stress-testing servers, from creating performance tests, to running these tests on a scheduled and on-demand basis, and finally viewing the test results in a highly informative and live report.

It has a simple, one-click installation, built with support for Kubernetes, DC/OS and Docker Engine, and can persist the created performance tests and their reports in 5 different databases. It also supports running distributed load out of the box. Bootstrapped with a user-friendly UI alongside a simple REST API, Predator helps developers simplify the performance testing regime.

TL;DR;

$ helm install my-release zooz/predator

The command deploys predator on the Kubernetes cluster with the default configuration. The configuration section lists the parameters that can be configured during installation.

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm uninstall my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

By default configuration, Predator runs with sqlite as its storage without persistence. It is possible to run with persistence with the following configuration:

Predator with SQLite persisted storage

$ helm install my-release zooz/predator --set persistence.enabled=true

Predator supports other storage engines like Cassandra, postgresSQL, MySql and SQL Server. If you want to use any of this database just install with these configuration:

$ helm install my-release zooz/predator --set database.type=MYSQL,database.name=predator,database.address=mysql.default,database.password=cHJlZGF0b3I=,database.password=cHJlZGF0b3I=

Note:

database.username & database.password should be provided in base 64

The following tables lists the configurable parameters of the Predator chart, and their default values.

ParameterDescriptionDefault
image.repositorycontainer imagezooz/predator
image.tagcontainer image tag1.6
image.pullPolicyOperator container image pull policyAlways
nameOverrideOverride the app name
fullnameOverrideOverride the app full name
resourcesSet the resource to be allocated and allowed for the Pods{}
ingress.enabledIf true, an ingress is be createdfalse
ingress.annotationsAnnotations for the ingress{}
ingress.pathPath for backend/
ingress.hostsA list of hosts for the ingresss['predator.local']
ingress.tlsIngress TLS configuration[]
nodeSelectorNode labels for pod assignment{}
tolerationsTolerations for pod assignment[]
affinityAffinity settings for pod assignment{}
service.typetype of controller service to createClusterIP
database.typechosen storage backend, Optional Values: SQLITE, CASSANDRA, MYSQL, POSTGRES AND SQLSERVERSQLITE
datbase.namethe name of the database/keyspace with the selected database type
database.usernameDatabase username (in base64)
database.passwordDatabase password (in base64)
kubernetesUrl URL of kubernetes, Predator should be able to communicate with this url.https://kubernetes.default.svc
persistence.enabledUse persistent volume to store datafalse
persistence.sizeSize of persistent volume claim2Gi
persistence.existingClaimUse an existing PVC to persist datanil
persistence.storageClassNameName of StorageClass resourcenil
persistence.accessModesPersistence access modes[ReadWriteOnce]
podAnnotationsannotations for pod{}
image.pullSecretsspecifies that Kubernetes should get the credentials from a Secret[]
portPort where service is exposed80
delayRunnerMsdelay runner test start, useful when sidecars are used0
runnerDockerImageThe predator-runner docker image that will run the testzooz/predator-runner:1.6
runnerCpuHow much CPU require for predator-runner1
runnerMemoryHow much memory require for predator-runner256
intervalCleanupFinishedContainerssearch and delete finished tests containers interval (ms)0
customRunnerDefinitioncustom json that will be merged with the kubernetes predator runner job definitionnil
allowInsecureTlsIf true, don't fail requests on unverified server certificate errorstrue
skipInternalAddressCheckIf false, Predator will test the INTERNAL_ADDRESS on startuptrue
serviceAccount.createIf true, create service accounttrue
serviceAccount.nameOverride the service account namenil
streaming.platformType of platform to produce messages to (KAFKA)
streaming.platformHealthCheckTimeoutMsHealth check timeout to streaming platform2000
streaming.excludedAttributesAttribute names to exclude from being produced in the resource to streaming platform
streaming.kafka.brokersString list of kafka brokers, split by ',' delimiter
streaming.kafka.clientIdId of kafka clientpredator
streaming.kafka.topicTopic name
streaming.kafka.autoTopicCreationEnable kafka client to auto create topic if it does not existfalse
streaming.kafka.adminRetriesAdmin client retries2
chaosMesh.enabledIf true, an chaos reasources will be created, and kubernetes chaos mesh will be used.false

Deploy predator with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has predator on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartpredator is pinned at v1.7.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply