toxiproxy

by Delivery Hero

Helm chartv1.3.11App 2.7.0Verified publisher

A TCP proxy to simulate network and system conditions for chaos and resiliency testing. By default the chart will install toxiproxy with blank configuration. You can add [toxics](https://github.com/Shopify/toxiproxy#toxics) to the running configuration using the [API](https://github.com/Shopify/toxiproxy#http-api). For large configurations it is easier to store your toxics in a JSON file, in a `ConfigMap` and pass this to the chart to be used by toxiproxy: ```console kubectl create configmap my-toxiproxy-config --from-file path/to/your/toxiproxy.json ``` And then install the chart passing the name of the `ConfigMap` as a value: ```console helm install toxiproxy deliveryhero/toxiproxy --set toxiproxyConfig=my-toxiproxy-config ```

About this chart

toxiproxy

A TCP proxy to simulate network and system conditions for chaos and resiliency testing.

By default the chart will install toxiproxy with blank configuration. You can add toxics to the running configuration using the API.

For large configurations it is easier to store your toxics in a JSON file, in a ConfigMap and pass this to the chart to be used by toxiproxy:

kubectl create configmap my-toxiproxy-config --from-file path/to/your/toxiproxy.json

And then install the chart passing the name of the ConfigMap as a value:

helm install toxiproxy deliveryhero/toxiproxy --set toxiproxyConfig=my-toxiproxy-config

Homepage: https://github.com/Shopify/toxiproxy

How to install this chart

A simple install with default values, latest chart version and generated name:

helm install --generate-name oci://ghcr.io/deliveryhero/helm-charts/toxiproxy

To install a specific version of this chart:

helm install --generate-name oci://ghcr.io/deliveryhero/helm-charts/toxiproxy --version 1.3.11

To install the chart with the release name my-release:

helm install my-release oci://ghcr.io/deliveryhero/helm-charts/toxiproxy

To install with some set values:

helm install my-release oci://ghcr.io/deliveryhero/helm-charts/toxiproxy --set values_key1=value1 --set values_key2=value2

To install with custom values file:

helm install my-release oci://ghcr.io/deliveryhero/helm-charts/toxiproxy -f values.yaml

Source Code

Values

KeyTypeDefaultDescription
affinityobject{}
argsstringnil
consumer.namestring"example"
deploymentAnnotationsobject{}
environmentlist[]
extraLabelsobject{}
frontend.enabledboolfalse
frontend.ingress.annotationsobject{}
frontend.ingress.classNamestring""
frontend.ingress.hosts[0].hoststring"chart-example-ui.local"
frontend.ingress.hosts[0].paths[0].pathstring"/"
frontend.ingress.hosts[0].paths[0].pathTypestring"ImplementationSpecific"
frontend.ingress.tlslist[]
frontend.repositorystring"buckle/toxiproxy-frontend"
frontend.resourcesobject{}
fullnameOverridestring""
image.pullPolicystring"IfNotPresent"
image.repositorystring"ghcr.io/shopify/toxiproxy"
image.tagstring"2.7.0"
imagePullSecretslist[]
ingress.annotationsobject{}
ingress.classNamestring""
ingress.enabledbooltrue
ingress.hosts[0].hoststring"chart-example.local"
ingress.hosts[0].paths[0].pathstring"/"
ingress.hosts[0].paths[0].pathTypestring"ImplementationSpecific"
ingress.tlslist[]
init.image.repositorystring"busybox"the docker repository and image to be used for the init container.
init.image.tagstring"latest"the docker image tag for the init container image
initContainerlist[]Extra init containers for the toxiproxy pod, added after the built-in copy-mappings one
initVolumelist[]Extra volumes for the toxiproxy pod, e.g. for the extra init containers
nameOverridestring""
nodeSelector."kubernetes.io/arch"string"amd64"
nodeSelector."kubernetes.io/os"string"linux"
pdb.enabledboolfalseWhether to create a PodDisruptionBudget
podAnnotationsobject{}
podSecurityContextobject{}
replicaCountint1
resourcesobject{}
securityContextobject{}Security context of the toxiproxy container
service.configJsonPathstring"/home/toxiproxy/proxies/config.json"
service.listeningAddressstring"0.0.0.0"
service.listeningPortint8474
service.portint80
service.proxies.portsstringnil
service.typestring"ClusterIP"
serviceAccount.createbooltrue
serviceAccount.namestringnil
tolerationslist[]
toxiproxyConfigstring""

Maintainers

NameEmailUrl
nreymundohttps://github.com/nreymundo

Chart source and versions

Chart source: github.com/deliveryhero/helm-charts/toxiproxy

Older chart versions: github.com/deliveryhero/helm-charts/pkgs/container/helm-charts/toxiproxy

Deploy toxiproxy with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has toxiproxy 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 charttoxiproxy is pinned at v1.3.11 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