Skip to content

Commit

Permalink
chore(node): indexer health check
Browse files Browse the repository at this point in the history
  • Loading branch information
incubator4 committed Feb 6, 2024
1 parent 3f4a831 commit 8603a46
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/node/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ 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.5
version: 0.1.6

# 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
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "v0.2.0"
appVersion: "v0.2.1"

dependencies:
- name: rsshub
Expand Down
26 changes: 26 additions & 0 deletions charts/node/templates/component/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,32 @@ spec:
volumeMounts:
- name: config
mountPath: /etc/rss3/node
{{- if $.Values.observability.opentelemetry.metrics.enable }}
ports:
- containerPort: 9090
name: metrics
protocol: TCP
livenessProbe:
httpGet:
path: /healthcheck
port: metrics
scheme: HTTP
initialDelaySeconds: 30
timeoutSeconds: 1
periodSeconds: 10
successThreshold: 1
failureThreshold: 3
readinessProbe:
httpGet:
path: /healthcheck
port: http
scheme: HTTP
initialDelaySeconds: 10
timeoutSeconds: 1
periodSeconds: 10
successThreshold: 1
failureThreshold: 3
{{- end }}
resources:
{{- toYaml ($indexer.resources | default $.Values.global.indexerResources ) | nindent 12 }}
volumes:
Expand Down

0 comments on commit 8603a46

Please sign in to comment.