flink
by QuenchWorks
Apache Flink session cluster: stateful stream and batch processing with one jobmanager and scalable taskmanagers. Hardened by QuenchWorks on the official binary distribution with log4j fixed, nonroot, CVE-gated, cosign-signed and pinned by digest.
About this chart
Apache Flink
Apache Flink is a stateful stream and batch processing engine. This chart runs a Flink session cluster: one jobmanager (REST API and web UI on 8081) and a scalable set of taskmanagers, on the QuenchWorks image (the official binary distribution with the log4j2 jars moved to their fixed release; nonroot, 0 fixable CVEs, cosign-signed, pinned by digest).
Install
helm install flink oci://ghcr.io/quenchworks/charts/flink
kubectl port-forward svc/flink-jobmanager 8081:8081
flink run -m 127.0.0.1:8081 your-job.jar
Configuration
Flink options go in flinkProperties and reach both roles as FLINK_PROPERTIES:
flinkProperties:
state.backend.type: rocksdb
execution.checkpointing.interval: 30s
| Key | Default | Meaning |
|---|---|---|
taskmanager.replicas | 1 | number of taskmanager pods |
taskmanager.numberOfTaskSlots | 2 | slots per taskmanager |
taskmanager.memoryProcessSize | 1728m | taskmanager.memory.process.size |
jobmanager.memoryProcessSize | 1600m | jobmanager.memory.process.size |
flinkProperties | {} | any other Flink option |
service.port | 8081 | REST API / web UI |
tls.enabled | false | JobManager REST (UI and API) serves HTTPS, plain HTTP gets a redirect (PKCS12 from an openssl init container); RPC unchanged |
tls.existingSecret | "" | a kubernetes.io/tls Secret to use (1st choice) |
tls.certManager.enabled | false | request a cert-manager Certificate from tls.certManager.issuerRef (2nd choice) |
tls.selfSigned.validityDays | 365 | otherwise Helm generates a CA + certificate, kept across upgrades |
openssl.digest | (pinned) | init container that builds the PKCS12 keystore |
Keep each memoryProcessSize under that role's container memory limit. There is one
jobmanager and no HA backend configured; for HA, set Flink's Kubernetes or ZooKeeper HA
options in flinkProperties and give it durable storage. The optional connectors in
Flink's opt/ directory are not in the image.
Pods run with a read-only root filesystem, all capabilities dropped, and an emptyDir at
/tmp for the working config copy, logs and temporary files. Each taskmanager advertises
its pod IP to the jobmanager.
The release gate installs the chart on kind with two taskmanagers and requires the REST API to report both registered with 4 slots in total.
The chart depends on the quench-common library chart from
oci://ghcr.io/quenchworks/charts.
Deploy flink with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has flink 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 chartflink is pinned at v0.0.10 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