Skip to content

Commit cd60232

Browse files
bors[bot]carlreid
andauthored
Merge #58
58: Add podAnnotations and expose some static values in values.yaml r=eskombro a=carlreid We need a way to annotate our pods for integration with other services, so this just adds support for that. Since I was updating these values, I thought I would also map some of those static values from the issue #53. Resolves: #53 Co-authored-by: Carl Reid <[email protected]>
2 parents 40eac4a + 4a3d7a7 commit cd60232

File tree

4 files changed

+23
-9
lines changed

4 files changed

+23
-9
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,15 @@ The [Parameters](https://github.com/meilisearch/meilisearch-kubernetes/tree/main
5959

6060
### Install MeiliSearch chart
6161

62-
Clone this repository and install the chart
62+
First, add the meilisearch chart repository
63+
```bash
64+
helm repo add meilisearch https://meilisearch.github.io/meilisearch-kubernetes
65+
```
6366

67+
Now install/upgrade the chart
6468
```bash
65-
git clone https://github.com/meilisearch/meilisearch-kubernetes.git
66-
cd meilisearch-kubernetes
6769
# Replace <your-instance-name> with the name you would like to give to your service
68-
helm install <your-service-name> charts/meilisearch
70+
helm upgrade -i <your-service-name> meilisearch/meilisearch
6971
```
7072

7173
### Uninstalling the Chart

charts/meilisearch/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v1
22
appVersion: "v0.19.0"
33
description: A Helm chart for the Meilisearch search engine
44
name: meilisearch
5-
version: 0.1.12
5+
version: 0.1.13
66
icon: https://res.cloudinary.com/meilisearch/image/upload/v1597822872/Logo/logo_img.svg
77
home: https://github.com/meilisearch/meilisearch-kubernetes/charts
88
maintainers:

charts/meilisearch/templates/statefulset.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ spec:
1919
labels:
2020
app.kubernetes.io/name: {{ include "meilisearch.name" . }}
2121
app.kubernetes.io/instance: {{ .Release.Name }}
22+
{{- with .Values.podAnnotations }}
23+
annotations:
24+
{{- toYaml . | nindent 8 }}
25+
{{- end }}
2226
spec:
2327
serviceAccountName: {{ template "meilisearch.fullname" . }}
2428
{{- if .Values.image.pullSecret }}
@@ -27,7 +31,7 @@ spec:
2731
{{- end }}
2832
{{- if .Values.persistence.enabled }}
2933
volumes:
30-
- name: data
34+
- name: {{ .Values.persistence.volume.name }}
3135
persistentVolumeClaim:
3236
claimName: {{ include "meilisearch.fullname" . }}
3337
{{- end }}
@@ -37,15 +41,15 @@ spec:
3741
imagePullPolicy: {{ .Values.image.pullPolicy }}
3842
{{- if .Values.persistence.enabled }}
3943
volumeMounts:
40-
- name: data
41-
mountPath: /data.ms
44+
- name: {{ .Values.persistence.volume.name }}
45+
mountPath: {{ .Values.persistence.volume.mountPath }}
4246
{{- end }}
4347
envFrom:
4448
- configMapRef:
4549
name: {{ template "meilisearch.fullname" . }}-environment
4650
ports:
4751
- name: http
48-
containerPort: 7700
52+
containerPort: {{ .Values.container.containerPort }}
4953
protocol: TCP
5054
livenessProbe:
5155
httpGet:

charts/meilisearch/values.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,15 @@ environment:
2525
MEILI_NO_ANALYTICS: true
2626
MEILI_ENV: development
2727

28+
podAnnotations: {}
29+
2830
service:
2931
type: ClusterIP
3032
port: 7700
3133

34+
container:
35+
containerPort: 7700
36+
3237
ingress:
3338
enabled: false
3439
annotations: {}
@@ -53,6 +58,9 @@ persistence:
5358
##
5459
# storageClass: "-"
5560
size: 10Gi
61+
volume:
62+
name: data
63+
mountPath: /data.ms
5664

5765
resources: {}
5866
# We usually recommend not to specify default resources and to leave this as a conscious

0 commit comments

Comments
 (0)