Quickstart
Enrolling Downstream Clusters to Fleet Manager
- Enroll downstream clusters to your Fleet Manager (this will be automatically done by Rancher Cluster Manager if you are using Rancher to deploy clusters and integrated Fleet) and set labels
observee
andobserver
to form cluster groups.
# for observer cluster
CLUSTER_LABELS="--set-string labels.observability-enabled=true --set-string labels.observability-role=observer"
# for observee cluster
CLUSTER_LABELS="--set-string labels.observability-enabled=true --set-string labels.observability-role=observee"
- Add Fleet Helm Repository
helm repo add fleet https://rancher.github.io/fleet-helm-charts/
- Deploy Fleet agent to downstream clusters
helm -n cattle-fleet-system install --create-namespace --wait \
$CLUSTER_LABELS \
--values values.yaml \
--set apiServerCA="$API_SERVER_CA_DATA" \
--set apiServerURL="$API_SERVER_URL" \
fleet-agent fleet/fleet-agent
The details for the cluster registration process can be seen in official Fleet documentation.
Forming ClusterGroups
- Create ClusterGroup
observer-clusters
apiVersion: fleet.cattle.io/v1alpha1
kind: ClusterGroup
metadata:
name: observer-clusters
annotations: {}
spec:
selector:
matchLabels:
observability-enabled: 'true'
observability-role: observer
- Create ClusterGroup
observee-clusters
.
apiVersion: fleet.cattle.io/v1alpha1
kind: ClusterGroup
metadata:
name: observee-clusters
annotations: {}
spec:
selector:
matchLabels:
observability-enabled: 'true'
observability-role: observee
The details for the ClusterGroups can be seen in official Fleet documentation.
Clone the Base Repository
- Clone the observability-stack repository. Start with the observability-stack repository as your foundation for integrating with Fleet.
- Customize the configuration options in the observability-stack repository based on your needs for
metrics
,logs
andtraces
. You can find dedicatedREADME.md
files under each observability topic as well as in the Available Toolkit section.
Observability Stack Observer Cluster Deployment
- Create observer-metrics
GitObject
to deploy observer metrics components. - Create observer-logs
GitObject
to deploy observer logs components. - Create observer-traces
GitObject
to deploy observer traces components.
Observability Stack Observee Cluster Deployment
- Create observee-metrics
GitObject
to deploy observeemetrics components. - Create observee-logs
GitObject
to deploy observee logs components. - Create observee-traces
GitObject
to deploy observee traces components.