flightctl

by joaquinito2051

Helm chartv1.0.2App 1.0.2

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:

  1. Scale down selected services — services listed in upgradeHooks.scaleDown.deployments are scaled to 0 in order for a clean shutdown.
  2. Migration dry-run — validates database migrations to catch issues early.
  3. Database migration (expand-only) — applies backward-compatible schema changes.
  4. 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 --atomic so 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

  1. API Access: The Flight Control API will be available at the configured endpoint
  2. UI Access: If enabled, the web UI will be accessible through the configured route/ingress
  3. 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 connection
  • prefer - TLS/SSL preferred, fallback to plain connection
  • require - TLS/SSL required, no certificate verification
  • verify-ca - TLS/SSL required, verify server certificate against CA
  • verify-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

KeyTypeDefaultDescription
alertExporterobject{"enabled":true,"image":{"image":"quay.io/flightctl/flightctl-alert-exporter","pullPolicy":"","tag":""}}Alert Exporter Configuration
alertExporter.enabledbooltrueEnable alert exporter service
alertExporter.image.imagestring"quay.io/flightctl/flightctl-alert-exporter"Alert exporter container image
alertExporter.image.pullPolicystring""Image pull policy for alert exporter container
alertExporter.image.tagstring""Alert exporter image tag
alertmanagerobject{"additionalPVCLabels":null,"additionalRouteLabels":null,"enabled":true,"image":{"image":"quay.io/prometheus/alertmanager","pullPolicy":"","tag":"v0.28.1"}}Alertmanager Configuration
alertmanager.additionalPVCLabelsstringnilAdditional labels for Alert Manager PVCs.
alertmanager.additionalRouteLabelsstringnilAdditional labels for Alert Manager routes.
alertmanager.enabledbooltrueEnable Alertmanager for alert handling
alertmanager.image.imagestring"quay.io/prometheus/alertmanager"Alertmanager container image
alertmanager.image.pullPolicystring""Image pull policy for Alertmanager container
alertmanager.image.tagstring"v0.28.1"Alertmanager image tag
alertmanagerProxyobject{"enabled":true,"image":{"image":"quay.io/flightctl/flightctl-alertmanager-proxy","pullPolicy":"","tag":""}}Alertmanager Proxy Configuration
alertmanagerProxy.enabledbooltrueEnable Alertmanager proxy service
alertmanagerProxy.image.imagestring"quay.io/flightctl/flightctl-alertmanager-proxy"Alertmanager proxy container image
alertmanagerProxy.image.pullPolicystring""Image pull policy for Alertmanager proxy container
alertmanagerProxy.image.tagstring""Alertmanager proxy image tag
apiobject{"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.additionalPVCLabelsstringnilAdditional labels for API PVCs.
api.additionalRouteLabelsstringnilAdditional labels for API routes.
api.image.imagestring"quay.io/flightctl/flightctl-api"API server container image
api.image.pullPolicystring""Image pull policy for API server container
api.image.tagstring""API server image tag (leave empty to use chart appVersion)
api.rateLimit.authRequestsint20Maximum authentication requests per auth window Auth-specific rate limiting
api.rateLimit.authWindowstring"1h"Time window for authentication rate limiting
api.rateLimit.enabledbooltrueEnable or disable rate limiting
api.rateLimit.requestsint300Maximum requests per window for general API endpoints General API rate limiting
api.rateLimit.trustedProxieslist["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.windowstring"1m"Time window for rate limiting (e.g., "1m", "1h")
cliArtifactsobject{"additionalRouteLabels":null,"enabled":true,"image":{"image":"quay.io/flightctl/flightctl-cli-artifacts","pullPolicy":"","tag":""}}CLI Artifacts Configuration
cliArtifacts.additionalRouteLabelsstringnilAdditional labels for CLI Artifacts routes.
cliArtifacts.enabledbooltrueEnable CLI artifacts service
cliArtifacts.image.imagestring"quay.io/flightctl/flightctl-cli-artifacts"CLI artifacts container image
cliArtifacts.image.pullPolicystring""Image pull policy for CLI artifacts container
cliArtifacts.image.tagstring""CLI artifacts image tag
clusterCliobject{"image":{"image":"quay.io/openshift/origin-cli","pullPolicy":"","tag":"4.20.0"}}Cluster CLI Configuration
clusterCli.image.imagestring"quay.io/openshift/origin-cli"Cluster CLI container image
clusterCli.image.pullPolicystring""Image pull policy for cluster CLI container
clusterCli.image.tagstring"4.20.0"Cluster CLI image tag
dbobject{"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.builtinobject{"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.additionalPVCLabelsstringnilAdditional labels for DB PVCs.
db.builtin.applicationUserSecretNamestring""Database application user secret name containing username/password. If not provided, the secret will be generated
db.builtin.fsGroupstring""File system group ID for database pod security context
db.builtin.image.imagestring"quay.io/sclorg/postgresql-16-c9s"PostgreSQL container image
db.builtin.image.pullPolicystring""Image pull policy for database container
db.builtin.image.tagstring"20250214"PostgreSQL image tag
db.builtin.masterUserSecretNamestring""Database master/admin secret name containing username/password. If not provided, the secret will be generated
db.builtin.maxConnectionsint200Maximum number of database connections
db.builtin.migrationUserSecretNamestring""Database migration user secret name containing username/password. If not provided, the secret will be generated
db.builtin.resources.requests.cpustring"512m"CPU resource requests for database pod
db.builtin.resources.requests.memorystring"512Mi"Memory resource requests for database pod
db.builtin.storage.sizestring"60Gi"Persistent volume size for database storage
db.external.applicationUserSecretNamestring""Database application user secret name containing username/password.
db.external.hostnamestring""External database hostname
db.external.migrationUserSecretNamestring""Database migration user secret name containing username/password.
db.external.portint5432Database port number
db.external.sslmodestring""SSL mode for database connections (disable, allow, prefer, require, verify-ca, verify-full)
db.external.tlsConfigMapNamestring""ConfigMap containing CA certificate (automatically mounted at /etc/ssl/postgres/)
db.external.tlsSecretNamestring""Secret containing client certificates (automatically mounted at /etc/ssl/postgres/)
db.namestring"flightctl"Database name for Flight Control
db.typestring"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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartflightctl is pinned at v1.0.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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