Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 1.22 KB

File metadata and controls

35 lines (28 loc) · 1.22 KB

OpenMeter Pod Runtime Watcher Helm Chart

This chart deploys the OpenMeter Pod Runtime Watcher to your cluster.

Quickstart

# Set vars
NAMESPACE=default
NAMESPACE_TO_WATCH=""  # set if you want to watch pods in a different namespace than what this is deployed to
OPENMETER_TOKEN=your-token-here
OPENMETER_TOKEN_SECRET_NAME=openmeter-token
INSTALL_NAME=openmeter-pod-runtime-watcher

# Create secret to use as an env var
kubectl create secret generic ${OPENMETER_TOKEN_SECRET_NAME} --from-literal=token=${OPENMETER_TOKEN} --namespace=${NAMESPACE}

# Install the chart.
# Ideally you'd use gitops or something else to manage this rather than a bunch of `--set` flags.
# You can specify --version=X.Y.Z to install a specific version. Otherwise the latest will be used.
helm upgrade ${INSTALL_NAME} oci://ghcr.io/tizz98/helm-charts/openmeter-pod-runtime-watcher \
  --namespace=${NAMESPACE} \
  --set "settings.namespace_override=${NAMESPACE_TO_WATCH}" \
  --set "settings.openmeter_token_secret=${OPENMETER_TOKEN_SECRET_NAME}" \
  --atomic \
  --timeout 5m \
  --install

Cleanup

helm uninstall ${INSTALL_NAME} --namespace=${NAMESPACE}
kubectl delete secret ${OPENMETER_TOKEN_SECRET_NAME} --namespace=${NAMESPACE}