flightctl
A helm chart for FlightControl
About this chart
flightctl
A helm chart for FlightControl
Homepage: https://github.com/flightctl/flightctl
Installation
Install Chart
# Install with default values
helm install my-flightctl oci://quay.io/flightctl/charts/flightctl
# Install with custom values
helm install my-flightctl oci://quay.io/flightctl/charts/flightctl -f values.yaml
# Install for development environment
helm install my-flightctl oci://quay.io/flightctl/charts/flightctl -f values.dev.yaml
# Install for ACM (Advanced Cluster Management) integration
helm install my-flightctl oci://quay.io/flightctl/charts/flightctl -f values.acm.yaml
# Install in specific namespace
helm install my-flightctl oci://quay.io/flightctl/charts/flightctl --namespace flightctl --create-namespace
Upgrade Chart
Flightctl uses Helm pre-upgrade hooks and a controlled sequence of steps to keep data consistent and minimize downtime:
- Scale down selected services — services listed in
upgradeHooks.scaleDown.deploymentsare scaled to 0 in order for a clean shutdown. - Migration dry-run — validates database migrations to catch issues early.
- Database migration (expand-only) — applies backward-compatible schema changes.
- Service update & restart — workloads are updated to the new spec and rolled out.
Example upgrade hooks configuration:
upgradeHooks:
scaleDown:
deployments:
- flightctl-api
- flightctl-worker
databaseMigrationDryRun: true # default true
Note: On fresh installs, migrations run as a regular Job (not a hook).
Basic upgrade command:
helm upgrade my-flightctl oci://quay.io/flightctl/charts/flightctl
Upgrade to a specific chart version:
helm upgrade \
--version <new-version> \
my-flightctl oci://quay.io/flightctl/charts/flightctl
Best Practices:
- Consider
--atomicso Helm waits and automatically rolls back if the upgrade fails. - Before major upgrades, back up the database and configuration to ensure a clean restore point.
- Preview the diff before upgrading with the Helm diff plugin.
Rollbacks
Use rollbacks to revert to a previously successful revision if an upgrade causes issues. Use helm history to identify the target revision, then roll back if needed.
Show release history and see failure reasons in the DESCRIPTION column:
$ helm history my-flightctl
REVISION UPDATED STATUS CHART APP VERSION DESCRIPTION
1 ... deployed flightctl-x.y.z <appver> Install complete
2 ... failed flightctl-x.y.z <appver> Upgrade "my-flightctl" failed: context deadline exceeded
Roll back to the previous successful revision (#1) and wait until it's healthy:
$ helm rollback my-flightctl 1 --wait
Rollback was a success! Happy Helming!
Verify that history reflects the rollback:
$ helm history my-flightctl
REVISION UPDATED STATUS CHART APP VERSION DESCRIPTION
1 ... superseded flightctl-x.y.z <appver> Install complete
2 ... failed flightctl-x.y.z <appver> Upgrade "my-flightctl" failed: context deadline exceeded
3 ... deployed flightctl-x.y.z <appver> Rollback to 1
Monitoring
Use these commands to inspect the current release state, values, and installed releases.
Show current release status and notes:
helm status my-flightctl
Show user-supplied values (add --all to include chart defaults as well):
helm get values my-flightctl
helm get values my-flightctl --all
List releases and observe revision bump/status after an upgrade attempt:
$ helm list
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
my-flightctl ... 1 ... deployed flightctl-x.y.z <appver>
my-flightctl ... 2 ... failed flightctl-x.y.z <appver>
Uninstall Chart
helm uninstall my-flightctl
Usage
After installation, flightctl will be available in your cluster.
Accessing Flight Control
- API Access: The Flight Control API will be available at the configured endpoint
- UI Access: If enabled, the web UI will be accessible through the configured route/ingress
- Agent Connection: Devices can connect using the agent endpoint
TLS/SSL Certificate Configuration
When using external PostgreSQL databases with TLS/SSL, Flight Control supports multiple certificate management options:
Option 1: Kubernetes ConfigMap/Secret (Production)
# Create certificate resources
kubectl create configmap postgres-ca-cert \
--from-file=ca-cert.pem=/path/to/ca-cert.pem
kubectl create secret generic postgres-client-certs \
--from-file=client-cert.pem=/path/to/client-cert.pem \
--from-file=client-key.pem=/path/to/client-key.pem
# Configure in values.yaml
db:
type: "external"
external:
hostname: "postgres.example.com"
sslmode: "verify-ca"
tlsConfigMapName: "postgres-ca-cert" # ConfigMap containing CA certificate
tlsSecretName: "postgres-client-certs" # Secret containing client certificates
TLS/SSL Modes:
disable- No TLS/SSL (not recommended for production)allow- TLS/SSL if available, otherwise plain connectionprefer- TLS/SSL preferred, fallback to plain connectionrequire- TLS/SSL required, no certificate verificationverify-ca- TLS/SSL required, verify server certificate against CAverify-full- TLS/SSL required, verify certificate and hostname
For complete TLS/SSL configuration details, see the external database documentation.
For more detailed configuration options, see the Values section below.
Values
| Key | Type | Default | Description |
|---|---|---|---|
| alertExporter | object | {"enabled":true,"image":{"image":"quay.io/flightctl/flightctl-alert-exporter","pullPolicy":"","tag":""}} | Alert Exporter Configuration |
| alertExporter.enabled | bool | true | Enable alert exporter service |
| alertExporter.image.image | string | "quay.io/flightctl/flightctl-alert-exporter" | Alert exporter container image |
| alertExporter.image.pullPolicy | string | "" | Image pull policy for alert exporter container |
| alertExporter.image.tag | string | "" | Alert exporter image tag |
| alertmanager | object | {"additionalPVCLabels":null,"additionalRouteLabels":null,"enabled":true,"image":{"image":"quay.io/prometheus/alertmanager","pullPolicy":"","tag":"v0.28.1"}} | Alertmanager Configuration |
| alertmanager.additionalPVCLabels | string | nil | Additional labels for Alert Manager PVCs. |
| alertmanager.additionalRouteLabels | string | nil | Additional labels for Alert Manager routes. |
| alertmanager.enabled | bool | true | Enable Alertmanager for alert handling |
| alertmanager.image.image | string | "quay.io/prometheus/alertmanager" | Alertmanager container image |
| alertmanager.image.pullPolicy | string | "" | Image pull policy for Alertmanager container |
| alertmanager.image.tag | string | "v0.28.1" | Alertmanager image tag |
| alertmanagerProxy | object | {"enabled":true,"image":{"image":"quay.io/flightctl/flightctl-alertmanager-proxy","pullPolicy":"","tag":""}} | Alertmanager Proxy Configuration |
| alertmanagerProxy.enabled | bool | true | Enable Alertmanager proxy service |
| alertmanagerProxy.image.image | string | "quay.io/flightctl/flightctl-alertmanager-proxy" | Alertmanager proxy container image |
| alertmanagerProxy.image.pullPolicy | string | "" | Image pull policy for Alertmanager proxy container |
| alertmanagerProxy.image.tag | string | "" | Alertmanager proxy image tag |
| api | object | {"additionalPVCLabels":null,"additionalRouteLabels":null,"image":{"image":"quay.io/flightctl/flightctl-api","pullPolicy":"","tag":""},"rateLimit":{"authRequests":20,"authWindow":"1h","enabled":true,"requests":300,"trustedProxies":["10.0.0.0/8","172.16.0.0/12","192.168.0.0/16"],"window":"1m"}} | API Server Configuration |
| api.additionalPVCLabels | string | nil | Additional labels for API PVCs. |
| api.additionalRouteLabels | string | nil | Additional labels for API routes. |
| api.image.image | string | "quay.io/flightctl/flightctl-api" | API server container image |
| api.image.pullPolicy | string | "" | Image pull policy for API server container |
| api.image.tag | string | "" | API server image tag (leave empty to use chart appVersion) |
| api.rateLimit.authRequests | int | 20 | Maximum authentication requests per auth window Auth-specific rate limiting |
| api.rateLimit.authWindow | string | "1h" | Time window for authentication rate limiting |
| api.rateLimit.enabled | bool | true | Enable or disable rate limiting |
| api.rateLimit.requests | int | 300 | Maximum requests per window for general API endpoints General API rate limiting |
| api.rateLimit.trustedProxies | list | ["10.0.0.0/8","172.16.0.0/12","192.168.0.0/16"] | List of trusted proxy IP ranges that can set X-Forwarded-For headers Trusted proxies that can set X-Forwarded-For/X-Real-IP headers This should include your load balancer and UI proxy IPs |
| api.rateLimit.window | string | "1m" | Time window for rate limiting (e.g., "1m", "1h") |
| cliArtifacts | object | {"additionalRouteLabels":null,"enabled":true,"image":{"image":"quay.io/flightctl/flightctl-cli-artifacts","pullPolicy":"","tag":""}} | CLI Artifacts Configuration |
| cliArtifacts.additionalRouteLabels | string | nil | Additional labels for CLI Artifacts routes. |
| cliArtifacts.enabled | bool | true | Enable CLI artifacts service |
| cliArtifacts.image.image | string | "quay.io/flightctl/flightctl-cli-artifacts" | CLI artifacts container image |
| cliArtifacts.image.pullPolicy | string | "" | Image pull policy for CLI artifacts container |
| cliArtifacts.image.tag | string | "" | CLI artifacts image tag |
| clusterCli | object | {"image":{"image":"quay.io/openshift/origin-cli","pullPolicy":"","tag":"4.20.0"}} | Cluster CLI Configuration |
| clusterCli.image.image | string | "quay.io/openshift/origin-cli" | Cluster CLI container image |
| clusterCli.image.pullPolicy | string | "" | Image pull policy for cluster CLI container |
| clusterCli.image.tag | string | "4.20.0" | Cluster CLI image tag |
| db | object | {"builtin":{"additionalPVCLabels":null,"applicationUserSecretName":"","fsGroup":"","image":{"image":"quay.io/sclorg/postgresql-16-c9s","pullPolicy":"","tag":"20250214"},"masterUserSecretName":"","maxConnections":200,"migrationUserSecretName":"","resources":{"requests":{"cpu":"512m","memory":"512Mi"}},"storage":{"size":"60Gi"}},"external":{"applicationUserSecretName":"","hostname":"","migrationUserSecretName":"","port":5432,"sslmode":"","tlsConfigMapName":"","tlsSecretName":""},"name":"flightctl","type":"builtin"} | Database Configuration |
| db.builtin | object | {"additionalPVCLabels":null,"applicationUserSecretName":"","fsGroup":"","image":{"image":"quay.io/sclorg/postgresql-16-c9s","pullPolicy":"","tag":"20250214"},"masterUserSecretName":"","maxConnections":200,"migrationUserSecretName":"","resources":{"requests":{"cpu":"512m","memory":"512Mi"}},"storage":{"size":"60Gi"}} | Settings for builtin DB |
| db.builtin.additionalPVCLabels | string | nil | Additional labels for DB PVCs. |
| db.builtin.applicationUserSecretName | string | "" | Database application user secret name containing username/password. If not provided, the secret will be generated |
| db.builtin.fsGroup | string | "" | File system group ID for database pod security context |
| db.builtin.image.image | string | "quay.io/sclorg/postgresql-16-c9s" | PostgreSQL container image |
| db.builtin.image.pullPolicy | string | "" | Image pull policy for database container |
| db.builtin.image.tag | string | "20250214" | PostgreSQL image tag |
| db.builtin.masterUserSecretName | string | "" | Database master/admin secret name containing username/password. If not provided, the secret will be generated |
| db.builtin.maxConnections | int | 200 | Maximum number of database connections |
| db.builtin.migrationUserSecretName | string | "" | Database migration user secret name containing username/password. If not provided, the secret will be generated |
| db.builtin.resources.requests.cpu | string | "512m" | CPU resource requests for database pod |
| db.builtin.resources.requests.memory | string | "512Mi" | Memory resource requests for database pod |
| db.builtin.storage.size | string | "60Gi" | Persistent volume size for database storage |
| db.external.applicationUserSecretName | string | "" | Database application user secret name containing username/password. |
| db.external.hostname | string | "" | External database hostname |
| db.external.migrationUserSecretName | string | "" | Database migration user secret name containing username/password. |
| db.external.port | int | 5432 | Database port number |
| db.external.sslmode | string | "" | SSL mode for database connections (disable, allow, prefer, require, verify-ca, verify-full) |
| db.external.tlsConfigMapName | string | "" | ConfigMap containing CA certificate (automatically mounted at /etc/ssl/postgres/) |
| db.external.tlsSecretName | string | "" | Secret containing client certificates (automatically mounted at /etc/ssl/postgres/) |
| db.name | string | "flightctl" | Database name for Flight Control |
| db.type | string | "builtin" | Type of database to use. Can be 'builtin' or 'external'. Only PostgreSQL DB is supported. |
Deploy flightctl with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has flightctl 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 chartflightctl is pinned at v1.0.2 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