Cluster API Addon Provider Fleet
Owerview​
Cluster API Add-on Provider for Fleet
(CAAPF) is a Cluster API (CAPI) provider that provides integration with Fleet
to enable the easy deployment of applications to a CAPI provisioned cluster.
Functionality​
- The provider will register a newly provisioned CAPI cluster with
Fleet
by creating aFleet
Cluster
instance with the samename
andnamespace
. Applications can be automatically deployed to the created cluster usingGitOps
. - The provider will automatically create a Fleet
ClusterGroup
for every CAPIClusterClass
in theClusterClass
namespace. This enables you to deploy the same applications to all clusters created from the sameClusterClass
.
This allows a user to specify either a Bundle
resource with raw application workloads, or GitRepo
to install applications from git. Each of the resources can provide targets
with any combination of:
targets:
- clusterGroup: <cluster-class-name> # If the cluster is created from cluster-class
- clusterName: <a specific CAPI cluster name>
Additionally, CAAPF
automatically propagates CAPI
cluster labels to the Fleet
cluster resource, so user can specify a target matching common cluster label with:
targets:
- clusterSelector: <label selector for the cluster instances, inherited from CAPI clusters>
- clusterGroupSelector: <label selector for the cluster group instances, labels inherited from ClusterClass>
Example - deploying kindnet CNI​
warning
The following example requires Fleet
version >=v0.10.1-rc.1
, which is not a part of rancher/charts
yet.