ipfix-generator
by wenisch.tech
A Spring Boot IPFIX traffic generator with a web UI and REST endpoints.
About this chart
ipfix-generator Helm Chart
The ipfix-generator Helm chart deploys the Spring Boot IPFIX generator UI and API to Kubernetes.
Features
- Stateless deployment by default
- Configurable image, resource requests, and probe settings
- Optional ingress support
- Generic
envandsecretspass-through for runtime configuration - Compatible with the published image at
ghcr.io/jfwenisch/ipfix-generator
Prerequisites
- Kubernetes 1.24+
- Helm 3.x
Installation
Install from the chart repository
helm repo add jfwenisch https://charts.wenisch.tech
helm repo update
helm install ipfix-generator jfwenisch/ipfix-generator -n ipfix-generator --create-namespace
Install from source
helm install ipfix-generator ./chart -n ipfix-generator --create-namespace
Upgrade an existing release
helm upgrade ipfix-generator ./chart -n ipfix-generator
Uninstall
helm uninstall ipfix-generator -n ipfix-generator
Configuration
All chart values are optional. The default deployment is intentionally simple and stateless.
Basic examples
Use a custom image tag:
helm install ipfix-generator ./chart \
-n ipfix-generator --create-namespace \
--set image.tag=0.4.2
Set Java runtime options:
helm install ipfix-generator ./chart \
-n ipfix-generator --create-namespace \
--set env.JAVA_TOOL_OPTIONS="-Xms256m -Xmx512m"
Provide a secret-backed environment variable:
helm install ipfix-generator ./chart \
-n ipfix-generator --create-namespace \
--set secrets.EXAMPLE_TOKEN="change-me"
Enable ingress:
helm install ipfix-generator ./chart \
-n ipfix-generator --create-namespace \
--set ingress.enabled=true \
--set ingress.className=nginx \
--set ingress.hosts[0].host=ipfix.example.com \
--set ingress.hosts[0].paths[0].path=/
Key values
| Parameter | Default | Description |
|---|---|---|
replicaCount | 1 | Number of pods when autoscaling is disabled |
image.repository | ghcr.io/jfwenisch/ipfix-generator | Container image repository |
image.tag | "" | Image tag override, defaults to chart appVersion |
service.type | ClusterIP | Kubernetes service type |
service.port | 8080 | Service port |
service.targetPort | 8080 | Container port exposed by the service |
env | {} | Non-sensitive environment variables |
secrets | {} | Sensitive environment variables rendered into a Secret |
resources.requests.cpu | 100m | CPU request |
resources.requests.memory | 256Mi | Memory request |
resources.limits.cpu | 500m | CPU limit |
resources.limits.memory | 512Mi | Memory limit |
ingress.enabled | false | Enables ingress creation |
autoscaling.enabled | false | Enables HPA creation |
See values.yaml and values.schema.json for the complete configuration surface.
Runtime behavior
- The application listens on port
8080by default. - Health checks target
/, because the application does not expose Spring Boot actuator endpoints. - Job state is stored in memory, so pod restarts clear the current job list.
Troubleshooting
Render the chart locally:
helm template ipfix-generator ./chart
Inspect the deployed resources:
kubectl get all -n ipfix-generator
kubectl describe deployment -n ipfix-generator ipfix-generator
Follow application logs:
kubectl logs -n ipfix-generator -f deployment/ipfix-generator
Port-forward the service:
kubectl port-forward -n ipfix-generator svc/ipfix-generator 8080:8080
License
GNU GPL v3
Deploy ipfix-generator with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has ipfix-generator 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 chartipfix-generator is pinned at v0.6.9 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