diff --git a/Dockerfile b/Dockerfile index a98cf5d..1f6ae02 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,6 +25,8 @@ COPY --from=builder /usr/local/lib/python3.12/site-packages /usr/local/lib/pytho COPY enviroplus_exporter.py . -CMD python3 enviroplus_exporter.py --bind=0.0.0.0 --port=8000 +#CMD python3 enviroplus_exporter.py --bind=0.0.0.0 --port=8000 -# ENTRYPOINT [ "python3", "enviroplus_exporter.py", "--bind=0.0.0.0", "--port=8000" ] \ No newline at end of file +CMD [ "--bind=0.0.0.0", "--port=8000" ] + +ENTRYPOINT [ "python3", "enviroplus_exporter.py" ] \ No newline at end of file diff --git a/charts/enviroplus-exporter/Chart.yaml b/charts/enviroplus-exporter/Chart.yaml index f88702c..1ec110f 100644 --- a/charts/enviroplus-exporter/Chart.yaml +++ b/charts/enviroplus-exporter/Chart.yaml @@ -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.0 +version: 0.1.2 # 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 diff --git a/charts/enviroplus-exporter/templates/deployment.yaml b/charts/enviroplus-exporter/templates/deployment.yaml index 01aa474..0a42c79 100644 --- a/charts/enviroplus-exporter/templates/deployment.yaml +++ b/charts/enviroplus-exporter/templates/deployment.yaml @@ -36,18 +36,19 @@ spec: {{- toYaml .Values.securityContext | nindent 12 }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} + 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 + # readinessProbe: + # httpGet: + # path: / + # port: http resources: {{- toYaml .Values.resources | nindent 12 }} volumes: