fleet

package module
v0.1.0-rc3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

README

Rancher Fleet

Status: ALPHA (actively looking for feedback)

$ kubectl get fleet

NAME                                    CLUSTERS-READY   CLUSTERS-DESIRED   STATUS
bundle.fleet.cattle.io/helm-download    0                3                  NotApplied: 3 (default-bobby-group/cluster-93d18642-217a-486b-9a5d-be06762443b2... )
bundle.fleet.cattle.io/fleet-agent      3                3
bundle.fleet.cattle.io/helm-kustomize   0                3                  NotApplied: 3 (default-bobby-group/cluster-93d18642-217a-486b-9a5d-be06762443b2... )
bundle.fleet.cattle.io/helm             0                3                  NotApplied: 3 (default-bobby-group/cluster-93d18642-217a-486b-9a5d-be06762443b2... )
bundle.fleet.cattle.io/kustomize        0                3                  NotApplied: 3 (default-bobby-group/cluster-93d18642-217a-486b-9a5d-be06762443b2... )
bundle.fleet.cattle.io/yaml             0                3                  NotApplied: 3 (default-bobby-group/cluster-93d18642-217a-486b-9a5d-be06762443b2... )

NAME                                      CLUSTER-COUNT   NONREADY-CLUSTERS                                                                             BUNDLES-READY   BUNDLES-DESIRED   STATUS
clustergroup.fleet.cattle.io/othergroup   1               [cluster-f6a0e6da-ff49-4aab-9a21-fbe4687dd25b]                                                1               6                 NotApplied: 5 (helm... )
clustergroup.fleet.cattle.io/bobby        2               [cluster-93d18642-217a-486b-9a5d-be06762443b2 cluster-d7b5d925-fc56-45ca-92d5-de98f6728dd5]   2               12                NotApplied: 10 (helm... )

Introduction

Rancher Fleet is a Kubernetes cluster fleet manager specifically designed to address the challenges of running thousands to millions of clusters across the world. While it's designed for massive scale the concepts still apply for even small deployments of less than 10 clusters. Fleet is lightweight enough to run on the smallest of deployments too and even has merit in a single node cluster managing only itself. The primary use case of Fleet is to ensure that deployments are consistents across clusters. One can deploy applications or easily enforce standards such as "every cluster must have X security tool installed."

Fleet has two simple high level concepts: cluster groups and bundles. Bundles are collections of resources that are deployed to clusters. Bundles are defined in the fleet manager and are then deployed to target cluster using selectors and per target customization. While bundles can be deployed to any cluster using powerful selectors, each cluster is a member of one cluster group. By looking at the status of bundles and cluster groups one can get a quick overview of that status of large deployments. After a bundle is deployed it is then constantly monitored to ensure that its Ready and resource have not been modified.

A bundle can be plain Kubernetes YAML, Helm, or kustomize based. Helm and kustomize can be combined to create very powerful workflows too. Regardless of the approach chosen to create bundles all resources are deployed to a cluster as helm charts. Using Fleet to manage clusters means all your clusters are easily auditable because every resource is carefully managed in a chart and a simple helm -n fleet-system ls will give you an accurate overview of what is installed.

Combining Fleet with a Git based workflow like Github Actions one can automate massive scale with ease.

Additional Documentation

  1. Understanding Bundles
  2. Example Bundles
  3. CLI
  4. Architecture and Installation

Quick Start

  1. Download flt CLI from releases.
  2. Install Fleet Manager on Kubernetes cluster. The flt CLI will use your current kubectl config to access the cluster.
    # Kubeconfig should point to MANAGER cluster
    flt install manager | kubectl apply -f -
    
  3. Generate cluster group token to register clusters
    # Kubeconfig should point to MANAGER cluster
    flt install agent-token > token
    
  4. Apply token to clusters to register
    # Kubeconfig should point to AGENT cluster
    kubectl apply -f token
    
  5. Deploy some bundles
    # Kubeconfig should point to MANAGER cluster
    flt apply ./examples/helm-kustomize
    
  6. Check status
    kubectl get fleet
    

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
flt
e2e
testenv/infra Module
modules
pkg
apis/fleet.cattle.io/v1alpha1
+k8s:deepcopy-gen=package +groupName=fleet.cattle.io +k8s:deepcopy-gen=package +groupName=fleet.cattle.io +k8s:deepcopy-gen=package +groupName=fleet.cattle.io
+k8s:deepcopy-gen=package +groupName=fleet.cattle.io +k8s:deepcopy-gen=package +groupName=fleet.cattle.io +k8s:deepcopy-gen=package +groupName=fleet.cattle.io
crd
generated/clientset/versioned
This package has the automatically generated clientset.
This package has the automatically generated clientset.
generated/clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
generated/clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
generated/clientset/versioned/typed/fleet.cattle.io/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
generated/clientset/versioned/typed/fleet.cattle.io/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
apis Module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL