Skip to content

Commit

Permalink
Quorum node metrics exporter 0.2.0: Add hashsum of configmap to pod s…
Browse files Browse the repository at this point in the history
…pec annotation for auto-reload on config change (#178)

* add checksum of configmap to pod spec annotations

* doc
  • Loading branch information
tgip-work authored Sep 19, 2022
1 parent 031e137 commit 06c83f9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/quorum-node-metrics-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.0
version: 0.2.0

# 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
8 changes: 4 additions & 4 deletions charts/quorum-node-metrics-exporter/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# quorum-node-metrics-exporter

![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.2](https://img.shields.io/badge/AppVersion-v0.2-informational?style=flat-square)
![Version: 0.2.0](https://img.shields.io/badge/Version-0.2.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.2](https://img.shields.io/badge/AppVersion-v0.2-informational?style=flat-square)

A Helm chart for [quorum-node-metrics-exporter](https://github.com/PharmaLedger-IMI/quorum-node-metrics-exporter)

Expand Down Expand Up @@ -70,7 +70,7 @@ A Helm chart for [quorum-node-metrics-exporter](https://github.com/PharmaLedger-
4. Install the helm release - **IMPORTANT** You must install the metrics into the same namespace like the Quorum node.
```shell
helm upgrade metrics-exporter pharmaledger-imi/quorum-node-metric-exporter --version=0.1.0 \
helm upgrade metrics-exporter pharmaledger-imi/quorum-node-metric-exporter --version=0.2.0 \
--install \
--namespace=quorum \
--values ./my-values.yaml
Expand All @@ -86,7 +86,7 @@ Run `helm upgrade --helm` for full list of options.
Provide the `--wait` argument and time to wait (default is 5 minutes) via `--timeout`

```bash
helm upgrade metrics-exporter pharmaledger-imi/quorum-node-metric-exporter --version=0.1.0 \
helm upgrade metrics-exporter pharmaledger-imi/quorum-node-metric-exporter --version=0.2.0 \
--install \
--wait --timeout=600s \
--namespace=quorum \
Expand Down Expand Up @@ -124,7 +124,7 @@ helm delete metrics-exporter \
| imagePullSecrets | list | `[]` | Secret(s) for pulling an container image from a private registry. Used for all images. See [https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/](https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/) |
| ingress.annotations | object | `{}` | |
| ingress.className | string | `""` | |
| ingress.enabled | bool | `false` | Whether to expose the metrics via an ingress or not. Usually not needed. If you enable it, also set `service.enabled: true` |
| ingress.enabled | bool | `false` | Whether to expose the metrics via an ingress or not. Usually not needed. If you enable it, also set `service.enabled: true` |
| ingress.hosts[0].host | string | `"chart-example.local"` | |
| ingress.hosts[0].paths[0].path | string | `"/"` | |
| ingress.hosts[0].paths[0].pathType | string | `"ImplementationSpecific"` | |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ spec:
prometheus.io/path: /
prometheus.io/port: "8000"
prometheus.io/scrape: "true"
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
{{- with .Values.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
Expand Down

0 comments on commit 06c83f9

Please sign in to comment.