Skip to content

Commit

Permalink
Improved Helm Chart
Browse files Browse the repository at this point in the history
  • Loading branch information
tbrink committed Dec 4, 2023
1 parent 528ae7f commit af03e46
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 9 deletions.
2 changes: 1 addition & 1 deletion charts/enviroplus-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.2
version: 0.1.3

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
23 changes: 15 additions & 8 deletions charts/enviroplus-exporter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,26 @@ spec:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
command: ["python3", "enviroplus_exporter.py"]
args: ["--bind=0.0.0.0", "--port=8000"]
ports:
- name: http
containerPort: {{ .Values.service.port }}
protocol: TCP
# livenessProbe:
# httpGet:
# path: /
# port: http
# readinessProbe:
# httpGet:
# path: /
# port: http
livenessProbe:
httpGet:
path: /
port: http
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 10
readinessProbe:
httpGet:
path: /
port: http
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 10
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumes:
Expand Down
19 changes: 19 additions & 0 deletions charts/enviroplus-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,25 @@ image:
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: ""
# Overrides the arguments that are passed to the enviroplus_exporter
#
# usage: enviroplus_exporter.py [-h] [-b ADDRESS] [-p PORT] [-f FACTOR] [-e ENVIRO] [-d DEBUG] [-i INFLUXDB] [-l LUFTDATEN]
# options:
# -h, --help show this help message and exit
# -b ADDRESS, --bind ADDRESS
# Specify alternate bind address [default: 0.0.0.0]
# -p PORT, --port PORT Specify alternate port [default: 8000]
# -f FACTOR, --factor FACTOR
# The compensation factor to get better temperature results when the Enviro+ pHAT is too close to the Raspberry Pi board
# -e ENVIRO, --enviro ENVIRO
# Device is an Enviro (not Enviro+) so don't fetch data from gas and particulate sensors as they don't exist
# -d DEBUG, --debug DEBUG
# Turns on more verbose logging, showing sensor output and post responses [default: false]
# -i INFLUXDB, --influxdb INFLUXDB
# Post sensor data to InfluxDB [default: false]
# -l LUFTDATEN, --luftdaten LUFTDATEN
# Post sensor data to Luftdaten [default: false]
#args: ["--bind=0.0.0.0", "--port=8000", ]

imagePullSecrets: []
nameOverride: ""
Expand Down

0 comments on commit af03e46

Please sign in to comment.