fleetconfig-controller

by open-cluster-management

Helm chartv0.4.3App v0.4.3Verified publisher

Declarative management of OCM multi-clusters.

About this chart

fleetconfig-controller helm chart

TL;DR

helm repo add ocm https://open-cluster-management.io/helm-charts
helm repo update ocm
helm install fleetconfig-controller ocm/fleetconfig-controller -n fleetconfig-system --create-namespace

Prerequisites

  • Kubernetes >= v1.19
  • cert-manager must be installed before deploying this chart. cert-manager is used to provision TLS certificates for the admission webhooks.

Installing cert-manager

# Add the Jetstack Helm repository
helm repo add jetstack https://charts.jetstack.io
helm repo update jetstack

# Install cert-manager with CRDs
helm install cert-manager jetstack/cert-manager \
  --namespace cert-manager \
  --create-namespace \
  --set crds.enabled=true

Parameters

FleetConfig Configuration

Configuration for the FleetConfig resources (Hub and Spoke) created on the Hub. By default, bootstraps the Hub cluster in hub-as-spoke mode.

Spoke Feature Gates

Uncomment and configure fleetConfig.spokeFeatureGates to enable feature gates for the Klusterlet on each Spoke. Do not disable the feature gates that are enabled by default.

Available Spoke Feature Gates:

  • AddonManagement (BETA - default=true) - Enables addon management functionality
  • AllAlpha (ALPHA - default=false) - Enables all alpha features
  • AllBeta (BETA - default=false) - Enables all beta features
  • ClusterClaim (BETA - default=true) - Enables cluster claim functionality
  • ClusterProperty (ALPHA - default=false) - Enables cluster property functionality
  • ExecutorValidatingCaches (ALPHA - default=false) - Enables executor validating caches
  • MultipleHubs (ALPHA - default=false) - Enables multiple bootstrap kubeconfigs connecting to different hubs
  • RawFeedbackJsonString (ALPHA - default=false) - Enables raw feedback JSON string support
  • V1beta1CSRAPICompatibility (ALPHA - default=false) - Enables v1beta1 CSR API compatibility

Registration Authentication Configuration

Registration authentication configuration for FleetConfig setup. Uses certificate signing requests (CSR) by default. Available fields:

  • driver: The authentication driver to use (default: "csr"). Options are "csr", "awsirsa" and "grpc".
  • grpc: gRPC registration settings. Used when driver is "grpc"; with driver "csr", server, autoApprovedIdentities, or endpointType "loadBalancer" also enables gRPC initialization. Must be unset when driver is "awsirsa".
  • hubClusterARN: The ARN of the hub cluster (required for EKS FleetConfigs).
  • autoApprovedARNPatterns: Optional list of spoke cluster ARN patterns that the hub will auto-approve.

Hub Cluster Manager Feature Gates

Feature gates for the Hub's Cluster Manager. Do not disable the feature gates that are enabled by default.

Available Hub Cluster Manager Feature Gates:

  • AddonManagement (BETA - default=true) - Enables addon management functionality
  • AllAlpha (ALPHA - default=false) - Enables all alpha features
  • AllBeta (BETA - default=false) - Enables all beta features
  • CloudEventsDrivers (ALPHA - default=false) - Enables cloud events drivers
  • ClusterImporter (ALPHA - default=false) - Enables auto import of managed clusters for certain cluster providers
  • ClusterProfile (ALPHA - default=false) - Enables syncing of ManagedCluster to ClusterProfile
  • DefaultClusterSet (ALPHA - default=true) - Enables default cluster set functionality
  • ManagedClusterAutoApproval (ALPHA - default=false) - Enables automatic managed cluster approval
  • ManifestWorkReplicaSet (ALPHA - default=false) - Enables manifest work replica set functionality
  • NilExecutorValidating (ALPHA - default=false) - Enables nil executor validation
  • ResourceCleanup (BETA - default=true) - Enables automatic resource cleanup
  • V1beta1CSRAPICompatibility (ALPHA - default=false) - Enables v1beta1 CSR API compatibility
  • CleanUpCompletedManifestWork (ALPHA - default=false) - Enables automatic garbage collection of completed manifest works
  • PlacementDebugServer (ALPHA - default=false) - Enables the placement debug server Resource specifications for all clustermanager-managed containers.

Singleton Control Plane Configuration

If provided, deploy a singleton control plane instead of Cluster Manager. To enable singleton mode, fleetConfig.hub.clusterManager must be commented out and fleetConfig.hub.singletonControlPlane must be uncommented and configured with the following options:

  • name: The name of the singleton control plane (default: "singleton-controlplane")
  • helm: Helm configuration for the multicluster-controlplane Helm chart
    • values: Raw, YAML-formatted Helm values
    • set: List of comma-separated Helm values (e.g., key1=val1,key2=val2)
    • setJson: List of comma-separated Helm JSON values
    • setLiteral: List of comma-separated Helm literal STRING values
    • setString: List of comma-separated Helm STRING values

Refer to the Multicluster Controlplane configuration for more details. Helm configuration for the multicluster-controlplane Helm chart. External managed cluster kubeconfig, required if using hosted mode. Resource specifications for all klusterlet-managed containers.

NameDescriptionValue
fleetConfig.enabledWhether to create a FleetConfig resources.true
fleetConfig.timeoutTimeout in seconds for all clusteradm operations, including init, accept, join, upgrade, etc.300
fleetConfig.logVerbosityLog verbosity. Valid values: 0-10, 0 is the least verbose, 10 is the most verbose.0
fleetConfig.spokeAnnotationsGlobal annotations to apply to all spoke clusters. If not present, the 'agent.open-cluster-management.io/' prefix is added to each key. Each annotation is added to klusterlet.spec.registrationConfiguration.clusterAnnotations on every spoke and subsequently to the ManagedClusters on the hub. Per-spoke annotations take precedence over the global annotations.{}
fleetConfig.spokeFeatureGates.ClusterClaimClusterClaim feature gate (BETA - default=true). Enables cluster claim functionality.true
fleetConfig.spokeFeatureGates.RawFeedbackJsonStringRawFeedbackJsonString feature gate (ALPHA - default=false). Enables raw feedback JSON string support.true
fleetConfig.source.bundleVersionBundle version.v1.4.0
fleetConfig.source.registryImage registry.quay.io/open-cluster-management
fleetConfig.registrationAuth.driverThe authentication driver to use (default: "csr"). Set to "awsirsa" for EKS FleetConfigs, or "grpc" for non-EKS spokes.csr
fleetConfig.registrationAuth.grpc.endpointTypegRPC endpoint type for clusteradm init when driver is "grpc". Valid values are "hostname" and "loadBalancer".""
fleetConfig.registrationAuth.grpc.servergRPC server address for clusteradm init when driver is "grpc" and endpointType is "hostname". Required for non-EKS spokes that cannot reach the in-cluster service.""
fleetConfig.registrationAuth.grpc.autoApprovedIdentitiesIdentities that the hub will auto-approve for gRPC registration.

Deploy fleetconfig-controller with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has fleetconfig-controller 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 chartfleetconfig-controller is pinned at v0.4.3 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