wmbusmeters
by andrenarchy
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
| Repository | Name | Version |
|---|---|---|
| https://library-charts.k8s-at-home.com | common | 4.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
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | Affinity constraint rules to place the Pod on a specific node. [ref] |
| image.pullPolicy | string | "IfNotPresent" | image pull policy |
| image.repository | string | "wmbusmeters/wmbusmeters" | image repository |
| image.tag | string | "1.17.1" | image tag |
| persistence | object | See values.yaml | Configure persistence settings for the chart under this key. |
| persistence.usb | object | See values.yaml | Configure a hostPathMount to mount a USB device in the container. |
| securityContext.privileged | bool | nil | Privileged securityContext may be required if USB controller is accessed directly through the host machine |
| service | object | See values.yaml | Configures 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartwmbusmeters is pinned at v1.2.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