Skip to content

Commit

Permalink
MEILI: Added tmp volume, servicemonitor, bumped the app version to 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
deshetti committed Aug 6, 2023
1 parent 1dbf9c2 commit 4a5327b
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 3 deletions.
4 changes: 2 additions & 2 deletions charts/meilisearch/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ 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.6.0
version: 0.7.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
# follow Semantic Versioning. They should reflect the version the application is using.
appVersion: v1.1.0
appVersion: v1.3.0

maintainers:
- name: deshetti
Expand Down
26 changes: 26 additions & 0 deletions charts/meilisearch/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{{- if and .Values.metrics.enabled .Values.metrics.serviceMonitor.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ template "meilisearch.fullname" . }}
namespace: {{ template "meilisearch.namespace" . }}
labels:
{{- include "meilisearch.labels" . | nindent 4 }}
{{- if .Values.metrics.serviceMonitor.selector }}
{{- toYaml .Values.metrics.serviceMonitor.selector | nindent 4 }}
{{- end }}
{{- if .Values.metrics.serviceMonitor.labels }}
{{- toYaml .Values.metrics.serviceMonitor.labels | nindent 4 }}
{{- end }}
spec:
endpoints:
- interval: {{ .Values.metrics.serviceMonitor.interval }}
port: metrics
scheme: {{ .Values.metrics.serviceMonitor.scheme }}
namespaceSelector:
matchNames:
- {{ template "meilisearch.namespace" . }}
selector:
matchLabels:
{{- include "meilisearch.selectorLabels" . | nindent 6 }}
{{- end }}
6 changes: 5 additions & 1 deletion charts/meilisearch/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,10 @@ spec:
failureThreshold: {{ .Values.readinessProbe.failureThreshold }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- if .Values.persistence.enabled }}
volumeMounts:
- name: tmp
mountPath: /tmp
{{- if .Values.persistence.enabled }}
- name: data
# mountPath: /meili_data/data.ms
mountPath: {{.Values.persistence.mountPath }}
Expand All @@ -85,6 +87,8 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
volumes:
- name: tmp
emptyDir: {}
{{- if and .Values.persistence.enabled .Values.persistence.existingClaim }}
- name: data
persistentVolumeClaim:
Expand Down
23 changes: 23 additions & 0 deletions charts/meilisearch/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,29 @@ livenessProbe:
failureThreshold: 5
periodSeconds: 10

metrics:
enabled: false

service:
type: ClusterIP
port: 8081
portName: metrics
annotations: {}
labels: {}

serviceMonitor:
enabled: false
selector:
# prometheus: kube-prometheus
release: monitoring
labels: {}
annotations: {}
interval: 30s

scheme: http
tlsConfig: {}
scrapeTimeout: 30s

nodeSelector: {}

tolerations: []
Expand Down

0 comments on commit 4a5327b

Please sign in to comment.