Skip to content

Commit 6aa4dc6

Browse files
committed
feat: Add servicemonitor for octez-node
1 parent c842cac commit 6aa4dc6

3 files changed

Lines changed: 52 additions & 9 deletions

File tree

charts/octez-node/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ Tezos octez-node
2929
| extraVolumes | list | `[]` | Additional volumes |
3030
| fullnameOverride | string | `""` | Overrides the chart's computed fullname |
3131
| httpPort | int | `8732` | HTTP Port |
32-
| image.pullPolicy | string | `"IfNotPresent"` | geth container pull policy |
33-
| image.repository | string | `"tezos/tezos"` | geth container image repository |
34-
| image.tag | string | `"octez-v21.3"` | geth container image tag |
32+
| image.pullPolicy | string | `"IfNotPresent"` | octez container pull policy |
33+
| image.repository | string | `"tezos/tezos"` | octez container image repository |
34+
| image.tag | string | `"octez-v21.4"` | octez container image tag |
3535
| imagePullSecrets | list | `[]` | Image pull secrets for Docker images |
3636
| ingress.annotations | object | `{}` | Annotations for Ingress |
3737
| ingress.enabled | bool | `false` | Ingress resource for the HTTP API |
@@ -54,7 +54,7 @@ Tezos octez-node
5454
| initImportSnapshot.enabled | bool | `true` | Init container to import snapshot rollup |
5555
| initImportSnapshot.image.pullPolicy | string | `"IfNotPresent"` | |
5656
| initImportSnapshot.image.repository | string | `"tezos/tezos"` | |
57-
| initImportSnapshot.image.tag | string | `"octez-v21.3"` | |
57+
| initImportSnapshot.image.tag | string | `"octez-v21.4"` | |
5858
| initImportSnapshot.resources | object | `{}` | |
5959
| initImportSnapshot.snapshotImportCmdTemplate | string | `"- sh\n- -c\n- >\n echo \"Importing snapshot from {{ .Values.initDownloadSnapshot.url }}\";\n [[ ! -d /var/tezos/data ]] && mkdir /var/tezos/data;\n cp /config/config.json /var/tezos/data;\n octez-node snapshot import /var/tezos/snapshot --data-dir /var/tezos/data --no-check;\n rm -vf /data/snapshot\n"` | |
6060
| livenessProbe | object | See `values.yaml` | Liveness probe |
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{{- if .Values.serviceMonitor.enabled }}
2+
apiVersion: monitoring.coreos.com/v1
3+
kind: ServiceMonitor
4+
metadata:
5+
name: {{ include "octez-node.fullname" . }}
6+
{{- if .Values.serviceMonitor.namespace }}
7+
namespace: {{ .Values.serviceMonitor.namespace }}
8+
{{- end }}
9+
labels:
10+
{{- include "octez-node.labels" . | nindent 4 }}
11+
{{- if .Values.serviceMonitor.labels }}
12+
{{- toYaml .Values.serviceMonitor.labels | nindent 4 }}
13+
{{- end }}
14+
{{- if .Values.serviceMonitor.annotations }}
15+
annotations:
16+
{{ toYaml .Values.serviceMonitor.annotations | nindent 4 }}
17+
{{- end }}
18+
spec:
19+
endpoints:
20+
- interval: {{ .Values.serviceMonitor.interval }}
21+
{{- if .Values.serviceMonitor.scrapeTimeout }}
22+
scrapeTimeout: {{ .Values.serviceMonitor.scrapeTimeout }}
23+
{{- end }}
24+
honorLabels: true
25+
port: metrics
26+
path: {{ .Values.serviceMonitor.path }}
27+
scheme: {{ .Values.serviceMonitor.scheme }}
28+
{{- if .Values.serviceMonitor.tlsConfig }}
29+
tlsConfig:
30+
{{- toYaml .Values.serviceMonitor.tlsConfig | nindent 6 }}
31+
{{- end }}
32+
{{- if .Values.serviceMonitor.relabelings }}
33+
relabelings:
34+
{{- toYaml .Values.serviceMonitor.relabelings | nindent 4 }}
35+
{{- end }}
36+
jobLabel: "{{ .Release.Name }}"
37+
selector:
38+
matchLabels:
39+
{{- include "octez-node.selectorLabels" . | nindent 8 }}
40+
namespaceSelector:
41+
matchNames:
42+
- {{ .Release.Namespace }}
43+
{{- end }}

charts/octez-node/values.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ fullnameOverride: ""
88
replicas: 1
99

1010
image:
11-
# -- geth container image repository
11+
# -- octez container image repository
1212
repository: tezos/tezos
13-
# -- geth container image tag
14-
tag: octez-v21.3
15-
# -- geth container pull policy
13+
# -- octez container image tag
14+
tag: octez-v21.4
15+
# -- octez container pull policy
1616
pullPolicy: IfNotPresent
1717

1818
# -- Extra args for the geth container
@@ -327,7 +327,7 @@ initImportSnapshot:
327327

328328
image:
329329
repository: tezos/tezos
330-
tag: octez-v21.3
330+
tag: octez-v21.4
331331
pullPolicy: IfNotPresent
332332

333333
snapshotImportCmdTemplate: |

0 commit comments

Comments
 (0)