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