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](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
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | |
| args | string | nil | |
| consumer.name | string | "example" | |
| deploymentAnnotations | object | {} | |
| environment | list | [] | |
| extraLabels | object | {} | |
| frontend.enabled | bool | false | |
| frontend.ingress.annotations | object | {} | |
| frontend.ingress.className | string | "" | |
| frontend.ingress.hosts[0].host | string | "chart-example-ui.local" | |
| frontend.ingress.hosts[0].paths[0].path | string | "/" | |
| frontend.ingress.hosts[0].paths[0].pathType | string | "ImplementationSpecific" | |
| frontend.ingress.tls | list | [] | |
| frontend.repository | string | "buckle/toxiproxy-frontend" | |
| frontend.resources | object | {} | |
| fullnameOverride | string | "" | |
| image.pullPolicy | string | "IfNotPresent" | |
| image.repository | string | "ghcr.io/shopify/toxiproxy" | |
| image.tag | string | "2.7.0" | |
| imagePullSecrets | list | [] | |
| ingress.annotations | object | {} | |
| ingress.className | string | "" | |
| ingress.enabled | bool | true | |
| ingress.hosts[0].host | string | "chart-example.local" | |
| ingress.hosts[0].paths[0].path | string | "/" | |
| ingress.hosts[0].paths[0].pathType | string | "ImplementationSpecific" | |
| ingress.tls | list | [] | |
| init.image.repository | string | "busybox" | the docker repository and image to be used for the init container. |
| init.image.tag | string | "latest" | the docker image tag for the init container image |
| initContainer | list | [] | Extra init containers for the toxiproxy pod, added after the built-in copy-mappings one |
| initVolume | list | [] | Extra volumes for the toxiproxy pod, e.g. for the extra init containers |
| nameOverride | string | "" | |
| nodeSelector."kubernetes.io/arch" | string | "amd64" | |
| nodeSelector."kubernetes.io/os" | string | "linux" | |
| pdb.enabled | bool | false | Whether to create a PodDisruptionBudget |
| podAnnotations | object | {} | |
| podSecurityContext | object | {} | |
| replicaCount | int | 1 | |
| resources | object | {} | |
| securityContext | object | {} | Security context of the toxiproxy container |
| service.configJsonPath | string | "/home/toxiproxy/proxies/config.json" | |
| service.listeningAddress | string | "0.0.0.0" | |
| service.listeningPort | int | 8474 | |
| service.port | int | 80 | |
| service.proxies.ports | string | nil | |
| service.type | string | "ClusterIP" | |
| serviceAccount.create | bool | true | |
| serviceAccount.name | string | nil | |
| tolerations | list | [] | |
| toxiproxyConfig | string | "" |
Maintainers
| Name | Url | |
|---|---|---|
| nreymundo | https://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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the charttoxiproxy is pinned at v1.3.11 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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