Skip to content

Commit

Permalink
Try #238:
Browse files Browse the repository at this point in the history
  • Loading branch information
meili-bors[bot] authored Oct 2, 2024
2 parents e2d6b4e + 0277fb5 commit 816a350
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
10 changes: 5 additions & 5 deletions charts/meilisearch/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ apiVersion: v1
appVersion: "v1.10.0"
description: A Helm chart for the Meilisearch search engine
name: meilisearch
version: 0.10.1
version: 0.10.2
icon: https://raw.githubusercontent.com/meilisearch/integration-guides/main/assets/logos/logo.svg
home: https://github.com/meilisearch/meilisearch-kubernetes/tree/main/charts/meilisearch
maintainers:
- name: Bruno
email: [email protected]
- name: Clementine
email: [email protected]
- name: Bruno
email: [email protected]
- name: Clementine
email: [email protected]
6 changes: 6 additions & 0 deletions charts/meilisearch/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ metadata:
labels:
{{- include "meilisearch.labels" . | nindent 4 }}
spec:
# Value 0 is bad interpreted it goes to 1 by default
# https://github.com/helm/helm/issues/3164
{{- if (eq 0 (int .Values.replicaCount))}}
replicas: 0
{{- else }}
replicas: {{ .Values.replicaCount | default 1 }}
{{- end }}
serviceName: {{ template "meilisearch.fullname" . }}
selector:
matchLabels:
Expand Down
17 changes: 7 additions & 10 deletions manifests/meilisearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ spec:
app.kubernetes.io/component: search-engine
app.kubernetes.io/part-of: meilisearch
annotations:
checksum/config: 57066f343c11bb744192756429e406248806cda981bd4a71c7c02dcafc103072
checksum/config: 3b17fd234a29aacf2e98ffa09aca207fa5519140923bc64b656070f54412fe1f
spec:
serviceAccountName: meilisearch
securityContext:
Expand All @@ -90,8 +90,6 @@ spec:
- name: data
emptyDir: {}



containers:
- name: meilisearch
image: "getmeili/meilisearch:v1.10.0"
Expand All @@ -100,16 +98,16 @@ spec:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
- ALL
readOnlyRootFilesystem: true
volumeMounts:
- name: tmp
mountPath: /tmp
- name: data
mountPath: /meili_data
envFrom:
- configMapRef:
name: meilisearch-environment
- configMapRef:
name: meilisearch-environment
ports:
- name: http
containerPort: 7700
Expand All @@ -133,8 +131,7 @@ spec:
port: http
periodSeconds: 10
initialDelaySeconds: 0
resources:
{}
resources: {}
---
# Source: meilisearch/templates/tests/test-connection.yaml
apiVersion: v1
Expand All @@ -150,6 +147,6 @@ spec:
containers:
- name: wget
image: busybox
command: ['wget']
args: ['meilisearch:7700']
command: ["wget"]
args: ["meilisearch:7700"]
restartPolicy: Never

0 comments on commit 816a350

Please sign in to comment.