Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
# Create a namespace.
kubectl create namespace kfuse-knight

# Get the container registry key from kloudfuse <token>.json -- (uploaded to the page)

# Make sure to create a k8s secret to use this registry access token which helm will use to upgrade/install

# On ubuntu (execute lines 9 through 13)
cat token.json | docker login -u _json_key  --password-stdin https://us-east1east-1-docker.pkg.dev
kubectl create secret docker-registry kfuse-image-pull-credentials \
        --namespace='kfuse-knight' --docker-server 'us.gcr.io' --docker-username _json_key \
        --docker-email 'container-registry@mvp-demo-301906.iam.gserviceaccount.com' \
        --docker-password=''"$(cat token.json)"''

# On windows (execute lines 16 through 18)
type token.json | helm registry login -u _json_key  --password-stdin https://us-east1east-1-docker.pkg.dev
$service_json = (Get-Content token.json).replace("\n", "").replace('"', '\"')
kubectl create secret docker-registry kfuse-image-pull-credentials --namespace=kfuse-knight --docker-server 'us.gcr.io' --docker-username _json_key --docker-email 'container-registry@mvp-demo-301906.iam.gserviceaccount.com' --docker-password=""$service_json""
        
# Get the latest knight chart version
helm upgrade --install knight oci://us-east-east11-docker.pkg.dev/mvp-demo-301906/kfuse-helm/kfuse-knight --version=0.1.0-f381c699688fac -n kfuse-knight

Customizing the metrics to emit

...

Knight exposes a prometheus endpoint for its collected metrics. However, it is recommended to use Datadog agent to scrape the metrics, in order to automatically enrich the collected metrics with cloud and Kubernetes labels. In addition to the the configurations specified in Collecting Data Using Datadog Agent, add the following configuration in the Datadog agent yaml file.

...