mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-23 23:49:12 +00:00
[dsmr-reader] New chart (#426)
* [dsmr-reader] New chart * Add vscode folder to helmignore
This commit is contained in:
parent
3288c87a4e
commit
e3d6d55d0f
24
charts/dsmr-reader/.helmignore
Normal file
24
charts/dsmr-reader/.helmignore
Normal file
@ -0,0 +1,24 @@
|
||||
# Patterns to ignore when building packages.
|
||||
# This supports shell glob matching, relative path matching, and
|
||||
# negation (prefixed with !). Only one pattern per line.
|
||||
.DS_Store
|
||||
# Common VCS dirs
|
||||
.git/
|
||||
.gitignore
|
||||
.bzr/
|
||||
.bzrignore
|
||||
.hg/
|
||||
.hgignore
|
||||
.svn/
|
||||
# Common backup files
|
||||
*.swp
|
||||
*.bak
|
||||
*.tmp
|
||||
*~
|
||||
# Various IDEs
|
||||
.project
|
||||
.idea/
|
||||
*.tmproj
|
||||
.vscode/
|
||||
# OWNERS file for Kubernetes
|
||||
OWNERS
|
24
charts/dsmr-reader/Chart.yaml
Normal file
24
charts/dsmr-reader/Chart.yaml
Normal file
@ -0,0 +1,24 @@
|
||||
apiVersion: v2
|
||||
appVersion: v4.9.0
|
||||
description: DSMR-protocol reader, telegram data storage and energy consumption visualizer.
|
||||
name: dsmr-reader
|
||||
version: 1.0.0
|
||||
keywords:
|
||||
- dsmr-reader
|
||||
- energy
|
||||
home: https://github.com/k8s-at-home/charts/tree/master/charts/dsmr-reader
|
||||
icon: https://avatars2.githubusercontent.com/u/57727360?s=400&v=4
|
||||
sources:
|
||||
- https://github.com/dsmrreader/dsmr-reader
|
||||
- https://github.com/xirixiz/dsmr-reader-docker
|
||||
maintainers:
|
||||
- name: billimek
|
||||
email: jeff@billimek.com
|
||||
dependencies:
|
||||
- name: common
|
||||
repository: https://k8s-at-home.com/charts/
|
||||
version: 2.1.1
|
||||
- name: postgresql
|
||||
version: 10.2.0
|
||||
repository: https://charts.bitnami.com/bitnami
|
||||
condition: postgresql.enabled
|
8
charts/dsmr-reader/OWNERS
Normal file
8
charts/dsmr-reader/OWNERS
Normal file
@ -0,0 +1,8 @@
|
||||
approvers:
|
||||
- billimek
|
||||
- onedr0p
|
||||
- bjw-s
|
||||
reviewers:
|
||||
- billimek
|
||||
- onedr0p
|
||||
- bjw-s
|
67
charts/dsmr-reader/README.md
Normal file
67
charts/dsmr-reader/README.md
Normal file
@ -0,0 +1,67 @@
|
||||
# DSMR-reader
|
||||
|
||||
This is a helm chart for [DSMR-reader](https://github.com/dsmrreader/dsmr-reader).
|
||||
|
||||
**This chart is not maintained by the upstream project and any issues with the chart should be raised [here](https://github.com/k8s-at-home/charts/issues/new/choose)**
|
||||
|
||||
## TL;DR;
|
||||
|
||||
```shell
|
||||
$ helm repo add k8s-at-home https://k8s-at-home.com/charts/
|
||||
$ helm install k8s-at-home/dsmr-reader
|
||||
```
|
||||
|
||||
## Installing the Chart
|
||||
|
||||
To install the chart with the release name `my-release`:
|
||||
|
||||
```console
|
||||
helm install --name my-release k8s-at-home/dsmr-reader
|
||||
```
|
||||
|
||||
## Uninstalling the Chart
|
||||
|
||||
To uninstall/delete the `my-release` deployment:
|
||||
|
||||
```console
|
||||
helm delete my-release --purge
|
||||
```
|
||||
|
||||
The command removes all the Kubernetes components associated with the chart and deletes the release.
|
||||
|
||||
## Configuration
|
||||
Read through the charts [values.yaml](https://github.com/k8s-at-home/charts/blob/master/charts/dsmr-reader/values.yaml)
|
||||
file. It has several commented out suggested values.
|
||||
Additionally you can take a look at the common library [values.yaml](https://github.com/k8s-at-home/charts/blob/master/charts/common/values.yaml) for more (advanced) configuration options.
|
||||
|
||||
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
|
||||
```console
|
||||
helm install dsmr-reader \
|
||||
--set env.TZ="America/New_York" \
|
||||
k8s-at-home/dsmr-reader
|
||||
```
|
||||
Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the
|
||||
chart. For example,
|
||||
```console
|
||||
helm install dsmr-reader k8s-at-home/dsmr-reader --values values.yaml
|
||||
```
|
||||
|
||||
```yaml
|
||||
image:
|
||||
tag: ...
|
||||
```
|
||||
|
||||
---
|
||||
**NOTE**
|
||||
|
||||
If you get
|
||||
```console
|
||||
Error: rendered manifests contain a resource that already exists. Unable to continue with install: existing resource conflict: ...`
|
||||
```
|
||||
it may be because you uninstalled the chart with `skipuninstall` enabled, you need to manually delete the pvc or use `existingClaim`.
|
||||
|
||||
---
|
||||
|
||||
## Upgrading an existing Release to a new major version
|
||||
|
||||
A major chart version change (like 4.0.1 -> 5.0.0) indicates that there is an incompatible breaking change potentially needing manual actions.
|
9
charts/dsmr-reader/ci/ct-values.yaml
Normal file
9
charts/dsmr-reader/ci/ct-values.yaml
Normal file
@ -0,0 +1,9 @@
|
||||
fullnameOverride: dsmr-reader
|
||||
|
||||
env:
|
||||
DATALOGGER_MODE: receiver
|
||||
DJANGO_DATABASE_HOST: dsmr-reader-db
|
||||
|
||||
postgresql:
|
||||
enabled: true
|
||||
fullnameOverride: dsmr-reader-db
|
1
charts/dsmr-reader/templates/NOTES.txt
Normal file
1
charts/dsmr-reader/templates/NOTES.txt
Normal file
@ -0,0 +1 @@
|
||||
{{- include "common.notes.defaultNotes" . -}}
|
1
charts/dsmr-reader/templates/common.yaml
Normal file
1
charts/dsmr-reader/templates/common.yaml
Normal file
@ -0,0 +1 @@
|
||||
{{ include "common.all" . }}
|
47
charts/dsmr-reader/values.yaml
Normal file
47
charts/dsmr-reader/values.yaml
Normal file
@ -0,0 +1,47 @@
|
||||
# Default values for dsmr-reader.
|
||||
|
||||
image:
|
||||
repository: xirixiz/dsmr-reader-docker
|
||||
pullPolicy: IfNotPresent
|
||||
tag: latest-v4.9.0-amd64
|
||||
|
||||
securityContext:
|
||||
privileged: true
|
||||
|
||||
strategy:
|
||||
type: Recreate
|
||||
|
||||
service:
|
||||
port:
|
||||
port: 80
|
||||
|
||||
# For all options see https://github.com/xirixiz/dsmr-reader-docker#dsmr-reader---environment-variables
|
||||
env:
|
||||
# TZ: UTC
|
||||
# DJANGO_TIME_ZONE: UTC
|
||||
DJANGO_DATABASE_USER: dsmr-reader
|
||||
DJANGO_DATABASE_PASSWORD: dsmr-reader-pass
|
||||
DJANGO_DATABASE_PORT: 5432
|
||||
DJANGO_DATABASE_NAME: dsmr-reader
|
||||
|
||||
# Path to your p1 reader device in the container
|
||||
# additionalVolumeMounts:
|
||||
# - name: p1reader
|
||||
# mountPath: /dev/ttyUSB0
|
||||
|
||||
# Path to your p1 reader device on the host
|
||||
# additionalVolumes:
|
||||
# - name: p1reader
|
||||
# hostPath:
|
||||
# path: /dev/ttyUSB0
|
||||
|
||||
# Enable postgres
|
||||
# ... for more options see https://github.com/bitnami/charts/tree/master/bitnami/postgresql
|
||||
postgresql:
|
||||
enabled: false
|
||||
postgresqlUsername: dsmr-reader
|
||||
postgresqlPassword: dsmr-reader-pass
|
||||
postgresqlDatabase: dsmr-reader
|
||||
persistence:
|
||||
enabled: false
|
||||
# storageClass: ""
|
Loading…
Reference in New Issue
Block a user