Skip to content

Commit 942493d

Browse files
committed
support metadata search
Signed-off-by: Yahli Ramberg <[email protected]>
1 parent 0c39360 commit 942493d

File tree

6 files changed

+233
-1
lines changed

6 files changed

+233
-1
lines changed

charts/lakefs/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: lakefs
33
description: A Helm chart for running LakeFS on Kubernetes
44
type: application
5-
version: 1.6.0
5+
version: 1.7.0
66
appVersion: 1.63.0
77

88
home: https://lakefs.io

charts/lakefs/templates/_arktika.tpl

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
{{/*
2+
Common labels
3+
*/}}
4+
{{- define "arktika.labels" -}}
5+
helm.sh/chart: {{ include "lakefs.chart" . }}
6+
{{ include "arktika.selectorLabels" . }}
7+
{{- if .Chart.AppVersion }}
8+
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
9+
{{- end }}
10+
app.kubernetes.io/managed-by: {{ .Release.Service }}
11+
{{- end }}
12+
13+
{{/*
14+
Selector labels
15+
*/}}
16+
{{- define "arktika.selectorLabels" -}}
17+
app.kubernetes.io/name: {{ include "lakefs.name" . }}-arktika
18+
app.kubernetes.io/instance: {{ .Release.Name }}
19+
{{- end }}
20+
21+
{{/*
22+
Create the name of the service account to use
23+
*/}}
24+
{{- define "arktika.serviceAccountName" -}}
25+
{{- $lakeFSAcc := include "lakefs.serviceAccountName" . }}
26+
{{- default $lakeFSAcc .Values.mds.serviceAccountName }}
27+
{{- end }}
28+
29+
{{/*
30+
Arktika environment variables
31+
*/}}
32+
{{- define "arktika.env" -}}
33+
{{- with .Values.mds.extraEnvVars }}
34+
env:
35+
{{- toYaml . | nindent 2 }}
36+
{{- end }}
37+
{{- with .Values.mds.extraEnvVarsSecret }}
38+
envFrom:
39+
- secretRef:
40+
name: {{ . }}
41+
{{- end }}
42+
{{- end }}
43+
44+
{{/*
45+
Arktika volumes
46+
*/}}
47+
{{- define "arktika.volumes" -}}
48+
{{- with .Values.mds.extraVolumes -}}
49+
{{- toYaml . | nindent 2 }}
50+
{{- end -}}
51+
- name: {{ include "arktika.fullname" . }}-config
52+
configMap:
53+
name: {{ include "arktika.fullname" . }}-config
54+
items:
55+
- key: config.yaml
56+
path: config.yaml
57+
{{- end }}
58+
59+
{{/*
60+
Arktika service port
61+
*/}}
62+
{{- define "arktika.port" -}}
63+
{{- default 80 (.Values.mds.service).port }}
64+
{{- end }}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{{- if .Values.mds.enabled }}
2+
apiVersion: v1
3+
kind: ConfigMap
4+
metadata:
5+
name: arktika-config
6+
labels:
7+
{{- include "arktika.labels" . | nindent 4 }}
8+
{{- with .Values.mds.config }}
9+
data:
10+
config.yaml: |
11+
{{ toYaml . | indent 4 }}
12+
{{- end }}
13+
{{- end }}
Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
{{- if .Values.mds.enabled -}}
2+
apiVersion: apps/v1
3+
kind: Deployment
4+
metadata:
5+
name: {{ include "arktika.fullname" . }}
6+
labels:
7+
{{- include "arktika.labels" . | nindent 4 }}
8+
spec:
9+
replicas: {{ .Values.mds.replicaCount }}
10+
selector:
11+
matchLabels:
12+
{{- include "arktika.selectorLabels" . | nindent 6 }}
13+
template:
14+
metadata:
15+
annotations:
16+
checksum/config: {{ include (print $.Template.BasePath "/arktika-configmap.yaml") . | sha256sum }}
17+
{{- with .Values.mds.podAnnotations }}
18+
{{- toYaml . | nindent 8 }}
19+
{{- end }}
20+
labels:
21+
{{- include "arktika.selectorLabels" . | nindent 8 }}
22+
spec:
23+
{{- if (.Values.image.privateRegistry).enabled }}
24+
imagePullSecrets:
25+
{{- if (.Values.image.privateRegistry).secretToken }}
26+
- name: "docker-registry"
27+
{{- else }}
28+
- name: {{ .Values.image.privateRegistry.secretName }}
29+
{{- end }}
30+
{{- end }}
31+
serviceAccountName: {{ include "arktika.serviceAccountName" . }}
32+
{{- with .Values.mds.securityContext }}
33+
securityContext:
34+
{{- toYaml . | nindent 8 }}
35+
{{- end }}
36+
containers:
37+
- name: arktika
38+
args:
39+
- --config
40+
- /app/config.yaml
41+
image: "{{ .Values.mds.image.repository }}:{{ .Values.mds.image.tag }}"
42+
imagePullPolicy: {{ .Values.mds.image.pullPolicy }}
43+
ports:
44+
- name: http
45+
containerPort: 8000
46+
protocol: TCP
47+
{{- with .Values.readinessProbe }}
48+
readinessProbe:
49+
{{- if .failureThreshold }}
50+
failureThreshold: {{ .failureThreshold }}
51+
{{- end }}
52+
{{- if .periodSeconds }}
53+
periodSeconds: {{ .periodSeconds }}
54+
{{- end }}
55+
{{- if .successThreshold }}
56+
successThreshold: {{ .successThreshold }}
57+
{{- end }}
58+
{{- if .timeoutSeconds }}
59+
timeoutSeconds: {{ .timeoutSeconds }}
60+
{{- end }}
61+
httpGet:
62+
path: /_health
63+
port: http
64+
{{- end }}
65+
{{- with .Values.livenessProbe }}
66+
livenessProbe:
67+
{{- if .failureThreshold }}
68+
failureThreshold: {{ .failureThreshold }}
69+
{{- end }}
70+
{{- if .periodSeconds }}
71+
periodSeconds: {{ .periodSeconds }}
72+
{{- end }}
73+
{{- if .successThreshold }}
74+
successThreshold: {{ .successThreshold }}
75+
{{- end }}
76+
{{- if .timeoutSeconds }}
77+
timeoutSeconds: {{ .timeoutSeconds }}
78+
{{- end }}
79+
{{- if .initialDelaySeconds }}
80+
initialDelaySeconds: {{ .initialDelaySeconds }}
81+
{{- end }}
82+
httpGet:
83+
path: /_health
84+
port: http
85+
{{- end }}
86+
{{- include "arktika.env" . | nindent 10 }}
87+
resources:
88+
{{- toYaml .Values.mds.resources | nindent 12 }}
89+
volumeMounts:
90+
- name: arktika-config
91+
mountPath: /app/config.yaml
92+
subPath: config.yaml
93+
{{- if .Values.extraVolumeMounts }}
94+
{{ toYaml .Values.extraVolumeMounts | nindent 12 }}
95+
{{- end }}
96+
volumes:
97+
- name: arktika-config
98+
configMap:
99+
name: arktika-config
100+
items:
101+
- key: config.yaml
102+
path: config.yaml
103+
{{- if .Values.extraVolumes }}
104+
{{ toYaml .Values.extraVolumes }}
105+
{{- end }}
106+
{{- with .Values.nodeSelector }}
107+
nodeSelector:
108+
{{- toYaml . | nindent 8 }}
109+
{{- end }}
110+
{{- with .Values.affinity }}
111+
affinity:
112+
{{- toYaml . | nindent 8 }}
113+
{{- end }}
114+
{{- with .Values.tolerations }}
115+
tolerations:
116+
{{- toYaml . | nindent 8 }}
117+
{{- end }}
118+
{{- with .Values.topologySpreadConstraints }}
119+
topologySpreadConstraints:
120+
{{- toYaml . | nindent 8 }}
121+
{{- end }}
122+
{{- end }}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{{- if .Values.mds.enabled }}
2+
apiVersion: v1
3+
kind: Service
4+
metadata:
5+
name: arktika-server
6+
labels:
7+
{{- include "arktika.labels" . | nindent 4 }}
8+
spec:
9+
type: ClusterIP
10+
ports:
11+
- port: 8000
12+
targetPort: http
13+
protocol: TCP
14+
name: http
15+
selector:
16+
{{- include "arktika.selectorLabels" . | nindent 4 }}
17+
{{- end}}

charts/lakefs/values.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,22 @@ extraEnvVars:
109109
# timeoutSeconds: 1
110110
# initialDelaySeconds: 5
111111

112+
mds:
113+
enabled: false
114+
image:
115+
repository: treeverse/mds
116+
tag: 'v0.0.2-dev'
117+
pullPolicy: IfNotPresent
118+
privateRegistry:
119+
enabled: true
120+
resources:
121+
requests:
122+
cpu: 250m
123+
memory: 128Mi
124+
limits:
125+
cpu: 500m
126+
memory: 256Mi
127+
112128

113129
# Start local postgres pod for quick start, not for production
114130
useDevPostgres: false

0 commit comments

Comments
 (0)