Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.

Latest commit

 

History

History
42 lines (27 loc) · 2.58 KB

federated-clusters.md

File metadata and controls

42 lines (27 loc) · 2.58 KB

Federated Clusters

To view data from multiple clusters simultaneously, Kubecost cluster federation must be enabled. This document walks through the necessary steps for enabling this feature.

Note: This feature today requires an Enterprise license.

Thanos

  1. Follow steps here to enable Thanos durable storage on a Master cluster.

  2. Repeat the process in Step 1 for each additional secondary cluster, with the following Thanos recommendations:

    • Reuse your existing storage bucket and access credentials.
    • Do not deploy multiple instances of thanos-compact.
    • Optionally deploy thanos-bucket in each additional cluster, but it is not required.
    • Optionally disable thanos.store and thanos.query (Clusters with store/query disabled will only have access to their metrics but will still write to the global bucket.)

Thanos modules can be disabled in thanos/values.yaml, or in values-thanos.yaml if overriding these values from a values-thanos.yaml file supplied from command line (helm upgrade kubecost -f values.yaml -f values-thanos.yaml), or by passing these parameters directly via helm install or upgrade as follows:

  --set thanos.compact.enabled=false --set thanos.bucket.enabled=false

You can also optionally disable thanos.store, thanos.query and thanos.queryFrontend with thanos/values.yaml or with these flags:

  --set thanos.query.enabled=false --set thanos.store.enabled=false --set thanos.queryFrontend.enabled=false
  1. Ensure you provide a unique identifier for prometheus.server.global.external_labels.cluster_id to have additional clusters be visible in the Kubecost product, e.g. cluster-two. Note: cluster_id can be replaced with another label(e.g. cluster) by modifying .Values.kubecostModel.promClusterIDLabel.

  2. Follow the same verification steps available here.

Sample configurations for each cloud provider can be found here: https://github.com/kubecost/poc-common-configurations/

Edit this doc on GitHub