resource-usage-collect-addon

by open-cluster-management

Helm chartv0.1.0App 1.0.0Verified publisher

A Helm chart for the Open Cluster Management resource-usage-collect-addon

About this chart

Resource Usage Collect Addon Helm Chart

This Helm chart installs the Resource Usage Collect Addon for Open Cluster Management (OCM). The addon collects resource usage information from managed clusters and reports it to the hub cluster.

Prerequisites

  • Open Cluster Management (OCM) installed
  • Helm 3.x
  • kubectl configured to access your cluster
  • A managed cluster registered with OCM

Installation

From Local Chart

# Clone the repository
git clone https://github.com/open-cluster-management-io/addon-contrib.git
cd addon-contrib/resource-usage-collect-addon/charts/resource-usage-collect-addon

# Install the chart
helm install resource-usage-collect-addon . \
  --namespace open-cluster-management-addon \
  --set global.image.tag=latest \
  --create-namespace

From Chart Archive

# Package the chart
helm package .

# Install from the package
helm install resource-usage-collect-addon resource-usage-collect-addon-0.1.0.tgz \
  --namespace open-cluster-management-addon \
  --create-namespace

Configuration

The following table lists the configurable parameters of the Resource Usage Collect Addon chart and their default values.

ParameterDescriptionDefault
global.image.repositoryContainer image repositoryquay.io/open-cluster-management
global.image.tagContainer image taglatest
global.image.pullPolicyContainer image pull policyIfNotPresent
addon.nameName of the addonresource-usage-collect
addon.displayNameDisplay name of the addonResource Usage Collect
addon.descriptionDescription of the addonCollects resource usage metrics from managed clusters
addon.namespaceNamespace where the addon will be installedopen-cluster-management-addon
agent.replicasNumber of agent replicas1
agent.resources.requests.cpuCPU request for the agent100m
agent.resources.requests.memoryMemory request for the agent128Mi
agent.resources.limits.cpuCPU limit for the agent500m
agent.resources.limits.memoryMemory limit for the agent512Mi
rbac.createWhether to create RBAC resourcestrue
skipClusterSetBindingskip creating managedclustersetbinding if already existfalse

Uninstallation

To uninstall/delete the deployment:

helm uninstall resource-usage-collect-addon -n open-cluster-management-addon

Contributing

Please read CONTRIBUTING.md for details on our code of conduct and the process for submitting pull requests.

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

Deploy resource-usage-collect-addon with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has resource-usage-collect-addon 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 chartresource-usage-collect-addon is pinned at v0.1.0 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