freebox-exporter
by captnbp
freebox-exporter is a simple Prometheus exporter for the Freebox
About this chart
freebox-exporter
freebox-exporter is a simple Prometheus exporter for the Freebox.
Trademarks: This software listing is packaged. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.
Introduction
This chart bootstraps freebox-exporter on Kubernetes using the Helm package manager.
Prerequisites
- Kubernetes 1.24+
- Helm 3.8.0+
- IPv6 enabled Kubernetes cluster
Installing the Chart
To install the chart with the release name freebox-exporter:
- Install the freebox-exporter localy to retreive the
token.jsonfile with the API credentials :go install github.com/trazfr/freebox-exporter@latest - Run the binary create the token.json file :
freebox-exporter -httpDiscovery token.json - Create the Kubernetes secret which will contain the
token.jsonkubectl create namespace freebox-exporter kubectl create secret generic -n freebox-exporter freebox-exporter-token --from-file=token.json - Install the chart
helm install -n freebox-exporter freebox-exporter --set configuration.existingSecret=freebox-exporter-token oci://registry-1.docker.io/captnbp/freebox-exporter
The command deploys freebox-exporter on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.
Uninstalling the Chart
To uninstall/delete the freebox-exporter release:
helm delete -n freebox-exporter freebox-exporter
The command removes all the Kubernetes components associated with the chart and deletes the release.
Parameters
Global parameters
| Name | Description | Value |
|---|---|---|
global.imageRegistry | Global Docker image registry | "" |
global.imagePullSecrets | Global Docker registry secret names as an array | [] |
global.storageClass | Global StorageClass for Persistent Volume(s) | "" |
Common parameters
| Name | Description | Value |
|---|---|---|
kubeVersion | Force target Kubernetes version (using Helm capabilities if not set) | "" |
nameOverride | String to partially override freebox-exporter.name template with a string (will prepend the release name) | "" |
fullnameOverride | String to fully override freebox-exporter.fullname template with a string | "" |
namespaceOverride | String to fully override common.names.namespace | "" |
commonLabels | Add labels to all the deployed resources | {} |
commonAnnotations | Add annotations to all the deployed resources | {} |
diagnosticMode.enabled | Enable diagnostic mode (all probes will be disabled and the command will be overridden) | false |
diagnosticMode.command | Command to override all containers in the the deployment(s)/statefulset(s) | ["sleep"] |
diagnosticMode.args | Args to override all containers in the the deployment(s)/statefulset(s) | ["infinity"] |
freebox-exporter parameters
| Name | Description | Value |
|---|---|---|
configuration.existingSecret | Secret with token.json configuration file (replaces the configuration.config value) | "" |
configuration.config | Content of the generated token.json file | "" |
hostAliases | Add deployment host aliases | [] |
serviceAccount.create | Specifies whether a ServiceAccount should be created | true |
serviceAccount.name | Name of the service account to use. If not set and create is true, a name is generated using the fullname template. | "" |
serviceAccount.automountServiceAccountToken | Automount service account token for the server service account | false |
serviceAccount.annotations | Annotations for service account. Evaluated as a template. Only used if create is true. | {} |
image.registry | freebox-exporter image registry | docker.io |
image.repository | freebox-exporter image repository | captnbp/freebox-exporter |
image.digest | freebox-exporter image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag | "" |
image.pullPolicy | freebox-exporter image pull policy | IfNotPresent |
image.pullSecrets | Specify docker-registry secret names as an array | [] |
extraArgs | Additional command line arguments to pass to freebox-exporter | {} |
command | Override default container command (useful when using custom images) | ["/app/freebox-exporter"] |
args | Override default container args (useful when using custom images) | ["-httpDiscovery","/opt/freebox-exporter/token.json"] |
lifecycleHooks | for the freebox-exporter container(s) to automate configuration before or after startup | {} |
extraEnvVars | Array with extra environment variables to add to freebox-exporter nodes | [] |
extraEnvVarsCM | Name of existing ConfigMap containing extra env vars for freebox-exporter pod(s) | "" |
extraEnvVarsSecret | Name of existing Secret containing extra env vars for freebox-exporter pod(s) | "" |
extraVolumes | Optionally specify extra list of additional volumes for the freebox-exporter pod(s) | [] |
extraVolumeMounts | Optionally specify extra list of additional volumeMounts for the freebox-exporter container(s) | [] |
sidecars | Add additional sidecar containers to the freebox-exporter pod(s) | [] |
initContainers | Add additional init containers to the freebox-exporter pod(s) | [] |
podSecurityContext.enabled | Enabled freebox-exporter pods' Security Context | true |
podSecurityContext.fsGroup | Set freebox-exporter pod's Security Context fsGroup | 1001 |
containerSecurityContext.enabled | Enabled freebox-exporter containers' Security Context | true |
containerSecurityContext.runAsUser | Set freebox-exporter containers' Security Context runAsUser | 1001 |
containerSecurityContext.runAsNonRoot | Set freebox-exporter container's Security Context runAsNonRoot | true |
service.type | Kubernetes service type | ClusterIP |
service.ports.http | freebox-exporter service port | 9091 |
service.nodePorts.http | Specify the nodePort value for the LoadBalancer and NodePort service types. | "" |
service.clusterIP | Specific cluster IP when service type is cluster IP. Use None for headless service | "" |
service.loadBalancerIP | loadBalancerIP if service type is LoadBalancer | "" |
service.loadBalancerSourceRanges | Address that are allowed when svc is LoadBalancer | [] |
service.externalTrafficPolicy | freebox-exporter service external traffic policy | Cluster |
service.extraPorts | Extra ports to expose (normally used with the sidecar value) | [] |
service.annotations | Additional annotations for freebox-exporter service | {} |
service.labels | Additional labels for freebox-exporter service | {} |
service.sessionAffinity | Session Affinity for Kubernetes service, can be "None" or "ClientIP" | None |
service.sessionAffinityConfig | Additional settings for the sessionAffinity | {} |
service.ipFamilyPolicy | Controller Service ipFamilyPolicy (optional, cloud specific) | PreferDualStack |
service.ipFamilies |
Deploy freebox-exporter with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has freebox-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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartfreebox-exporter is pinned at v1.0.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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