ocean-metric-exporter

by Spot by NetApp

Helm chartv1.1.1App 1.0.5

A Helm chart for Ocean Metric Exporter

About this chart

ocean-metric-exporter

A Helm chart for Ocean Metric Exporter.

Installation

  1. Add the Spot Helm chart repository:
helm repo add spot https://charts.spot.io
  1. Update your local Helm chart repository cache:
helm repo update
  1. Install ocean-metric-exporter:
helm install my-release spot/ocean-metric-exporter

NOTE: Please configure all required chart values using the set command line argument or a values.yaml file.

Values

KeyTypeDefaultDescription
affinityOptional{}Pod scheduling preferences. Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
caBundleSecret.createboolfalseControls whether a CA bundle secret should be created.
caBundleSecret.datastring""Must contain the CA bundle data in case caBundleSecret.create is true. For example by using --set caBundleSecret.data="$(cat ./ca.pem)"
caBundleSecret.keystring"userEnvCertificates.pem"Key inside the secret to inject the CA bundle from
caBundleSecret.namestring""CA bundle Secret name. (Optional)
configMapNameOptional""ConfigMap name to use. In case spotinst.clusterIdentifier is provided, this overrides the name of the created configMap.
image.pullPolicyOptional"IfNotPresent"Image pull policy.
image.pullSecretsOptional[]Image pull secrets.
image.repositoryOptional"gcr.io/spotinst-artifacts/spot-ocean-metric-exporter"Image repository.
image.tagOptional""Image tag. Defaults to .Chart.AppVersion.
metricsConfigurationOptional{"allowLabels":null,"allowMetrics":null,"categories":["scaling"],"denyLabels":null,"denyMetrics":null}Exporter Metrics Configurations
metricsConfiguration.allowLabelsArray[string]nilList of Labels to allow - if empty will get everything. Shouldn't be used with denyLabels. Possible values can be found here: https://docs.spot.io/ocean/tools-and-integrations/prometheus/scrape?id=labels
metricsConfiguration.allowMetricsArray[string]nilList of Metrics to allow - if empty will get everything. Shouldn't be used with denyMetrics. Possible values can be found here: https://docs.spot.io/ocean/tools-and-integrations/prometheus/scrape?id=metrics
metricsConfiguration.categoriesArray[string]["scaling"]List of Categories to enable - if empty will get no metrics. Additional possible values can be found here: https://docs.spot.io/ocean/tools-and-integrations/prometheus/scrape?id=categories
metricsConfiguration.denyLabelsArray[string]nilList of Labels to deny - if empty will get everything. Shouldn't be used with allowLabels. Possible values can be found here: https://docs.spot.io/ocean/tools-and-integrations/prometheus/scrape?id=labels
metricsConfiguration.denyMetricsArray[string]nilList of Metrics to deny - if empty will get everything. Shouldn't be used with allowMetrics. Possible values can be found here: https://docs.spot.io/ocean/tools-and-integrations/prometheus/scrape?id=metrics
nodeSelectorOptional{}Node selector.
oceanControllerobject{"caBundleSecretName":"","configMapName":"","namespace":"","secretName":""}Reference secret and configMap for the Ocean Controller. Deprecated in favor of spotinst object or secretName and configMapName
podAnnotationsOptional{}Pod annotations. Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
podEnvVariablesOptional[]Additional environment variables for the exporter container.
probes.enabledBooltrueWhether to include both liveness and readiness probe, if this is set to true it will ignore the nested enabled booleans.
probes.liveness.enabledBoolfalseWhether to include liveness probe, this will be ignored if probes.enabled was set to true.
probes.liveness.failureThresholdInteger3Liveness probe failure threshold.
probes.liveness.initialDelaySecondsInteger15Liveness probe initial delay.
probes.liveness.periodSecondsInteger10Liveness probe period.
probes.liveness.timeoutSecondsInteger1Liveness probe timeout.
probes.readiness.enabledBoolfalseWhether to include readiness probe, this will be ignored if probes.enabled was set to true.
probes.readiness.failureThresholdInteger3Readiness probe failure threshold.
probes.readiness.initialDelaySecondsInteger15Readiness probe initial delay.
probes.readiness.periodSecondsInteger10Readiness probe period.
probes.readiness.successThresholdInteger1Readiness probe success threshold.
probes.readiness.timeoutSecondsInteger1Readiness probe timeout.
replicaCountOptional1Replicas. Ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#replicas
resourcesOptional{"limits":{"cpu":"500m","memory":"500Mi"},"requests":{"cpu":"100m","memory":"50Mi"}}Resource requests and limits. Ref: http://kubernetes.io/docs/user-guide/compute-resources/
secretNameOptional""Secret name to use. In case spotinst.token, spotinst.account are provided, this overrides the name of the created secret.
service.createOptionaltrueControls whether a service should be created.
spotinst.accountOptional""Spot Account. Ref: https://docs.spot.io/administration/organizations?id=account
spotinst.clusterIdentifierOptional""Unique identifier used by the Ocean Controller to connect between the Ocean backend and the Kubernetes cluster. Ref: https://docs.spot.io/ocean/tutorials/spot-kubernetes-controller/
spotinst.tokenOptional""Spot Token. Ref: https://docs.spot.io/administration/api/create-api-token
tolerationsOptional[{"key":"node-role.kubernetes.io/master","operator":"Exists"},{"key":"node-role.kubernetes.io/control-plane","operator":"Exists"}]Tolerations for nodes that have taints on them. Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/

Autogenerated from chart metadata using helm-docs v1.13.1

Deploy ocean-metric-exporter with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has ocean-metric-exporter 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 chartocean-metric-exporter is pinned at v1.1.1 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