Skip to content

Instantly share code, notes, and snippets.

@rssnyder
Last active February 14, 2024 15:04
Show Gist options
  • Save rssnyder/f6d8b03210965c1501c1a681310543b2 to your computer and use it in GitHub Desktop.
Save rssnyder/f6d8b03210965c1501c1a681310543b2 to your computer and use it in GitHub Desktop.
harness delegate install for ccm

Installing the Harness Delegate for CCM

A Harness Delegate is a service you run in your kubernetes cluster that monitors usage and gathers metrics.

To install the delegate, we can use Helm with a values file.

Add the Harness Helm repository: helm repo add harness-delegate https://app.harness.io/storage/harness-download/delegate-helm-chart/

Make sure the repo is updated: helm repo update harness-delegate

Create your values.yaml file:

delegateName:
accountId: pC_7h33wQTeZ_j-libvF4A
delegateToken:
managerEndpoint: https://app.harness.io/gratis
delegateDockerImage: quay.apps.lz-np2.ent-ocp4-useast1.aws.internal.das/eks-blueprints/harness-delegate:23.07.79904
replicas: 1
upgrader.enabled: true
k8sPermissionsType: "CLUSTER_VIEWER"
cpu: 4
memory: 13GB
ccm:
  visibility: true

delegateName should be set to something that relates to your cluster name, if possible exactly the same as your cluster name.

delegateToken is a secret that will be given to you by the FinOps team.

With the values file created, we can deploy the delegate with Helm:

helm upgrade -i harness-delegate --namespace harness-delegate-ng --create-namespace harness-delegate/harness-delegate-ng -f values.yaml

You will need the k8s metrics server to be running in your cluster

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment