wmbusmeters

by andrenarchy

Helm chartv1.2.0App 1.19.0Verified publisher

Read the wired or wireless mbus protocol to acquire utility meter readings.

About this chart

wmbusmeters

Read the wired or wireless mbus protocol to acquire utility meter readings.

Source Code

Requirements

Kubernetes: >=1.16.0-0

Dependencies

RepositoryNameVersion
https://library-charts.k8s-at-home.comcommon4.5.2

TL;DR

helm repo add andrenarchy https://andrenarchy.github.io/helm-charts/
helm repo update
helm install wmbusmeters andrenarchy/wmbusmeters

Installing the Chart

To install the chart with the release name wmbusmeters

helm install wmbusmeters andrenarchy/wmbusmeters

Uninstalling the Chart

To uninstall the wmbusmeters deployment

helm uninstall wmbusmeters

The command removes all the Kubernetes components associated with the chart including persistent volumes and deletes the release.

Configuration

Read through the values.yaml file. It has several commented out suggested values. Other values may be used from the values.yaml from the common library.

Specify each parameter using the --set key=value[,key=value] argument to helm install.

helm install wmbusmeters \
  --set env.TZ="America/New York" \
    andrenarchy/wmbusmeters

Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart.

helm install wmbusmeters andrenarchy/wmbusmeters -f values.yaml

Custom configuration

IMPORTANT NOTE: a radio device must be accessible on the node where this pod runs, in order for this chart to function properly.

First, you will need to mount your radio device into the pod, you can do so by adding the following to your values:

additionalVolumeMounts:
  - name: usb
    mountPath: /path/to/device

additionalVolumes:
  - name: usb
    hostPath:
      path: /path/to/device

Second you will need to set a nodeAffinity rule, for example:

affinity:
  nodeAffinity:
    requiredDuringSchedulingIgnoredDuringExecution:
      nodeSelectorTerms:
      - matchExpressions:
        - key: app
          operator: In
          values:
          - wmbus-radio

... where a node with an attached radio device is labeled with app: wmbus-radio

If you are getting errors, that the device cannot be opened when starting wmbusmeters, try uncommenting the privileged flag:

securityContext:
  privileged: true

Values

Important: When deploying an application Helm chart you can add more values from our common library chart here

KeyTypeDefaultDescription
affinityobject{}Affinity constraint rules to place the Pod on a specific node. [ref]
image.pullPolicystring"IfNotPresent"image pull policy
image.repositorystring"wmbusmeters/wmbusmeters"image repository
image.tagstring"1.17.1"image tag
persistenceobjectSee values.yamlConfigure persistence settings for the chart under this key.
persistence.usbobjectSee values.yamlConfigure a hostPathMount to mount a USB device in the container.
securityContext.privilegedboolnilPrivileged securityContext may be required if USB controller is accessed directly through the host machine
serviceobjectSee values.yamlConfigures service settings for the chart. Normally this does not need to be modified.

Deploy wmbusmeters with OpenTenant

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