# carloslcancela/helm-perf architecture

> Architecture diagram of the GitHub repository carloslcancela/helm-perf, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-08-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/carloslcancela/helm-perf
- Repository: https://github.com/carloslcancela/helm-perf

## Overview

#### Purpose

This is a Helm chart for deploying an ApacheBench-style load-test client and a webserver target into Kubernetes. The README points to an external Docker ApacheBench example; this repository primarily packages the Kubernetes resources.

#### Chart Entry Point

Helm consumes `Chart.yaml` as chart metadata and `values.yaml` as the deployment configuration surface. Rendering the chart creates a namespace plus two pod resources.

Paths:
- `Chart.yaml`
- `values.yaml`

#### Namespace Boundary

The chart defines a dedicated Kubernetes namespace, establishing the isolation boundary for the benchmark client and target workload.

Path:
- `templates/namespace.yaml`

#### Webserver Target Pod

The target service workload is defined as a standalone pod. It is the endpoint intended to receive traffic generated by the benchmarking client; its image, ports, labels, and runtime settings are expected to be parameterized through Helm values where referenced.

Path:
- `templates/webserver-pod.yaml`
- `values.yaml`

#### ApacheBench Client Pod

A separate client pod runs the ApacheBench container/workload. This is the traffic generator and is logically independent from the target pod, allowing benchmark execution to originate from within the Kubernetes cluster.

Path:
- `templates/client-pod.yaml`
- `values.yaml`

#### Primary Control and Data Flow

1. An operator runs Helm install/upgrade against the chart root.
2. Helm renders the namespace, webserver pod, and client pod templates using `values.yaml`.
3. Kubernetes schedules the webserver pod as the benchmark target.
4. Kubernetes schedules the client pod, which issues HTTP benchmark traffic to the webserver through cluster networking.
5. Benchmark output is produced by the client container runtime rather than by an application service in this repository.

Relevant paths:
- `templates/namespace.yaml`
- `templates/webserver-pod.yaml`
- `templates/client-pod.yaml`

#### Runtime and Infrastructure

The material runtime is Kubernetes, with Helm as the deployment/rendering mechanism. The external workload dependency is the Docker-based ApacheBench example referenced by the README; this chart does not contain ApacheBench implementation code itself.

Paths:
- `README.md`
- `Chart.yaml`
- `templates/client-pod.yaml`

Main entry points: [`values.yaml`](https://github.com/carloslcancela/helm-perf/blob/main/values.yaml) (Deployment Values), [`templates/webserver-pod.yaml`](https://github.com/carloslcancela/helm-perf/blob/main/templates/webserver-pod.yaml) (Webserver Pod Template), [`templates/client-pod.yaml`](https://github.com/carloslcancela/helm-perf/blob/main/templates/client-pod.yaml) (ApacheBench Client Template), [`templates/namespace.yaml`](https://github.com/carloslcancela/helm-perf/blob/main/templates/namespace.yaml) (Namespace Template)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_chart["Helm Chart"]
  node_chart_metadata["Chart Metadata<br/>Helm metadata<br/>[Chart.yaml]"]
  node_values["Deployment Values<br/>Helm values<br/>[values.yaml]"]
  node_namespace_template["Namespace Template<br/>Helm template<br/>[namespace.yaml]"]
  node_webserver_template["Webserver Pod Template<br/>Helm template<br/>[webserver-pod.yaml]"]
  node_client_template["ApacheBench Client Template<br/>Helm template<br/>[client-pod.yaml]"]
end

subgraph group_cluster["Kubernetes Cluster"]
  node_namespace["Benchmark Namespace<br/>Kubernetes namespace"]
  node_webserver_pod["Webserver Target Pod<br/>Kubernetes pod"]
  node_client_pod["ApacheBench Client Pod<br/>Kubernetes pod"]
  node_cluster_network{{"Cluster Networking<br/>Kubernetes networking"}}
  node_benchmark_output["Benchmark Output<br/>client runtime output"]
end

node_helm{{"Helm<br/>renderer and deployer"}}
node_apachebench_image["ApacheBench Docker Workload<br/>external container dependency<br/>[README.md]"]

node_chart_metadata -->|"defines chart"| node_helm
node_values -->|"supplies values"| node_helm
node_helm -->|"renders"| node_namespace_template
node_helm -->|"renders"| node_webserver_template
node_helm -->|"renders"| node_client_template
node_namespace_template -->|"creates"| node_namespace
node_webserver_template -->|"creates"| node_webserver_pod
node_client_template -->|"creates"| node_client_pod
node_values -->|"parameterizes"| node_webserver_template
node_values -->|"parameterizes"| node_client_template
node_namespace -->|"contains"| node_webserver_pod
node_namespace -->|"contains"| node_client_pod
node_apachebench_image -->|"runs as workload"| node_client_pod
node_client_pod -->|"sends HTTP traffic"| node_cluster_network
node_cluster_network -->|"routes to target"| node_webserver_pod
node_client_pod -->|"produces"| node_benchmark_output

click node_chart_metadata "https://github.com/carloslcancela/helm-perf/blob/main/Chart.yaml"
click node_values "https://github.com/carloslcancela/helm-perf/blob/main/values.yaml"
click node_namespace_template "https://github.com/carloslcancela/helm-perf/blob/main/templates/namespace.yaml"
click node_webserver_template "https://github.com/carloslcancela/helm-perf/blob/main/templates/webserver-pod.yaml"
click node_client_template "https://github.com/carloslcancela/helm-perf/blob/main/templates/client-pod.yaml"
click node_apachebench_image "https://github.com/carloslcancela/helm-perf/blob/main/README.md"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_chart_metadata,node_values,node_namespace_template,node_webserver_template,node_client_template toneBlue
class node_namespace,node_webserver_pod,node_client_pod,node_cluster_network,node_benchmark_output toneAmber
class node_helm,node_apachebench_image toneNeutral
```

## Components

### Helm Chart

- [Chart Metadata](https://github.com/carloslcancela/helm-perf/blob/main/Chart.yaml): Helm metadata · `Chart.yaml`
- [Deployment Values](https://github.com/carloslcancela/helm-perf/blob/main/values.yaml): Helm values · Configuration surface for workload settings. · `values.yaml`
- [Namespace Template](https://github.com/carloslcancela/helm-perf/blob/main/templates/namespace.yaml): Helm template · `templates/namespace.yaml`
- [Webserver Pod Template](https://github.com/carloslcancela/helm-perf/blob/main/templates/webserver-pod.yaml): Helm template · `templates/webserver-pod.yaml`
- [ApacheBench Client Template](https://github.com/carloslcancela/helm-perf/blob/main/templates/client-pod.yaml): Helm template · `templates/client-pod.yaml`

### Kubernetes Cluster

- **Benchmark Namespace**: Kubernetes namespace · Isolation boundary for benchmark resources.
- **Webserver Target Pod**: Kubernetes pod · Receives benchmark HTTP traffic.
- **ApacheBench Client Pod**: Kubernetes pod · Runs the external ApacheBench workload.
- **Cluster Networking**: Kubernetes networking
- **Benchmark Output**: client runtime output · Produced by the client container.

### Other components

- **Helm**: renderer and deployer · Renders templates during install or upgrade.
- [ApacheBench Docker Workload](https://github.com/carloslcancela/helm-perf/blob/main/README.md): external container dependency · External Docker ApacheBench example referenced by the README. · `README.md`

## Connections

- Chart Metadata → Helm: defines chart
- Deployment Values → Helm: supplies values
- Helm → Namespace Template: renders
- Helm → Webserver Pod Template: renders
- Helm → ApacheBench Client Template: renders
- Namespace Template → Benchmark Namespace: creates
- Webserver Pod Template → Webserver Target Pod: creates
- ApacheBench Client Template → ApacheBench Client Pod: creates
- Deployment Values → Webserver Pod Template: parameterizes
- Deployment Values → ApacheBench Client Template: parameterizes
- Benchmark Namespace → Webserver Target Pod: contains
- Benchmark Namespace → ApacheBench Client Pod: contains
- ApacheBench Docker Workload → ApacheBench Client Pod: runs as workload
- ApacheBench Client Pod → Cluster Networking: sends HTTP traffic
- Cluster Networking → Webserver Target Pod: routes to target
- ApacheBench Client Pod → Benchmark Output: produces
