Skip to content

Commit 4659b7f

Browse files
Add Helm chart
1 parent d5278d5 commit 4659b7f

11 files changed

+264
-0
lines changed

helm/archive-query-log/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
**/requirements.lock
2+
**/requirements.yaml.bak
3+
**/*.tgz
4+
values.override.yaml

helm/archive-query-log/.helmignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Patterns to ignore when building packages.
2+
# This supports shell glob matching, relative path matching, and
3+
# negation (prefixed with !). Only one pattern per line.
4+
.DS_Store
5+
# Common VCS dirs
6+
.git/
7+
.gitignore
8+
.bzr/
9+
.bzrignore
10+
.hg/
11+
.hgignore
12+
.svn/
13+
# Common backup files
14+
*.swp
15+
*.bak
16+
*.tmp
17+
*.orig
18+
*~
19+
# Various IDEs
20+
.project
21+
.idea/
22+
*.tmproj
23+
.vscode/

helm/archive-query-log/Chart.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
apiVersion: v2
2+
name: archive-query-log
3+
description: "The Archive Query Log: Mining Millions of Search Result Pages of Hundreds of Search Engines from 25 Years of Web Archives."
4+
type: application
5+
home: https://github.com/webis-de/archive-query-log
6+
sources:
7+
- https://github.com/webis-de/archive-query-log
8+
icon: https://assets.webis.de/img/webis-logo-gray.svg
9+
maintainers:
10+
- name: Jan Heinrich Reimer
11+
12+
13+
# This is the version number of the application being deployed. This version number should be
14+
# incremented each time you make changes to the application.
15+
appVersion: 0.1.0
16+
17+
# This is the chart version. This version number should be incremented each time you make changes
18+
# to the chart and its templates, including the app version.
19+
version: 0.1.0
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Installed {{ $.Chart.Name }} (release name: {{ $.Release.Name }}{{ with $.Values.namespace }}, namespace: {{ . }}{{ end }}).
2+
Accessing Elasticsearch {{ $.Values.elasticsearch.host }}:{{ $.Values.elasticsearch.port }}
3+
{{ if and $.Values.elasticsearch.username $.Values.elasticsearch.password }}
4+
Authenticating Elasticsearch with user {{ $.Values.elasticsearch.username }}.
5+
{{ else }}
6+
Authentication for Elasticsearch is not configured. Configure credentials with the `--set elasticsearch.username=EXAMPLE --set elasticsearch.password=EXAMPLE` options for the `helm` command, if you need to access a restricted Elasticsearch cluster.
7+
{{ end }}
8+
9+
Jobs started:
10+
- Build sources: {{ $.Values.initialCompletions.sources }}x
11+
- Fetch : {{ $.Values.initialCompletions.captures }}x
12+
13+
Cronjobs scheduled:
14+
- Build sources: {{ $.Values.schedules.sources }}
15+
- Build sources: {{ $.Values.schedules.captures }}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
apiVersion: v1
2+
kind: ConfigMap
3+
metadata:
4+
name: {{ $.Release.Name }}-config-map
5+
namespace: {{ $.Release.Namespace }}
6+
data:
7+
config.yml: |
8+
es:
9+
host: {{ $.Values.elasticsearch.host }}
10+
port: {{ $.Values.elasticsearch.port }}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
apiVersion: batch/v1
2+
kind: CronJob
3+
metadata:
4+
name: {{ $.Release.Name }}-cronjob-captures-fetch
5+
namespace: {{ $.Release.Namespace }}
6+
annotations:
7+
checksum/config-map: {{ include (print $.Template.BasePath "/archive-query-log-config-map.yml") . | sha256sum }}
8+
checksum/elasticsearch-login: {{ include (print $.Template.BasePath "/archive-query-log-secret.k8s.yaml") . | sha256sum }}
9+
spec:
10+
schedule: {{ $.Values.schedules.sources }}
11+
jobTemplate:
12+
spec:
13+
template:
14+
spec:
15+
containers:
16+
- name: {{ $.Release.Name }}-cronjob-captures-fetch
17+
image: "{{ .Values.image }}:{{ .Chart.AppVersion }}"
18+
imagePullPolicy: IfNotPresent
19+
resources:
20+
requests:
21+
memory: 4Gi
22+
command:
23+
- /bin/sh
24+
- -c
25+
- archive-query-log -f /workspace/config.config-map.yml -f /workspace/config.secret.yml captures fetch
26+
volumeMounts:
27+
- name: {{ $.Release.Name }}-config-map
28+
mountPath: /workspace/config.config-map.yml
29+
readOnly: true
30+
subPath: config.yml
31+
- name: {{ $.Release.Name }}-secret
32+
mountPath: /workspace/config.secret.yml
33+
readOnly: true
34+
subPath: config.yml
35+
restartPolicy: OnFailure
36+
volumes:
37+
- name: {{ $.Release.Name }}-config-map
38+
configMap:
39+
name: {{ $.Release.Name }}-config-map
40+
- name: {{ $.Release.Name }}-secret
41+
secret:
42+
secretName: {{ $.Release.Name }}-secret
43+
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
apiVersion: batch/v1
2+
kind: CronJob
3+
metadata:
4+
name: {{ $.Release.Name }}-cronjob-sources-build
5+
namespace: {{ $.Release.Namespace }}
6+
annotations:
7+
checksum/config-map: {{ include (print $.Template.BasePath "/archive-query-log-config-map.yml") . | sha256sum }}
8+
checksum/elasticsearch-login: {{ include (print $.Template.BasePath "/archive-query-log-secret.k8s.yaml") . | sha256sum }}
9+
spec:
10+
schedule: {{ $.Values.schedules.sources }}
11+
jobTemplate:
12+
spec:
13+
template:
14+
spec:
15+
containers:
16+
- name: {{ $.Release.Name }}-cronjob-sources-build
17+
image: "{{ .Values.image }}:{{ .Chart.AppVersion }}"
18+
imagePullPolicy: IfNotPresent
19+
resources:
20+
requests:
21+
memory: 4Gi
22+
command:
23+
- /bin/sh
24+
- -c
25+
- archive-query-log -f /workspace/config.config-map.yml -f /workspace/config.secret.yml sources build
26+
volumeMounts:
27+
- name: {{ $.Release.Name }}-config-map
28+
mountPath: /workspace/config.config-map.yml
29+
readOnly: true
30+
subPath: config.yml
31+
- name: {{ $.Release.Name }}-secret
32+
mountPath: /workspace/config.secret.yml
33+
readOnly: true
34+
subPath: config.yml
35+
restartPolicy: OnFailure
36+
volumes:
37+
- name: {{ $.Release.Name }}-config-map
38+
configMap:
39+
name: {{ $.Release.Name }}-config-map
40+
- name: {{ $.Release.Name }}-secret
41+
secret:
42+
secretName: {{ $.Release.Name }}-secret
43+
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
apiVersion: batch/v1
2+
kind: Job
3+
metadata:
4+
name: {{ $.Release.Name }}-job-captures-fetch
5+
namespace: {{ $.Release.Namespace }}
6+
annotations:
7+
checksum/config-map: {{ include (print $.Template.BasePath "/archive-query-log-config-map.yml") . | sha256sum }}
8+
checksum/elasticsearch-login: {{ include (print $.Template.BasePath "/archive-query-log-secret.k8s.yaml") . | sha256sum }}
9+
spec:
10+
template:
11+
spec:
12+
containers:
13+
- name: {{ $.Release.Name }}-job-captures-fetch
14+
image: "{{ .Values.image }}:{{ .Chart.AppVersion }}"
15+
imagePullPolicy: IfNotPresent
16+
resources:
17+
requests:
18+
memory: 4Gi
19+
command:
20+
- /bin/sh
21+
- -c
22+
- archive-query-log -f /workspace/config.config-map.yml -f /workspace/config.secret.yml captures fetch
23+
volumeMounts:
24+
- name: {{ $.Release.Name }}-config-map
25+
mountPath: /workspace/config.config-map.yml
26+
readOnly: true
27+
subPath: config.yml
28+
- name: {{ $.Release.Name }}-secret
29+
mountPath: /workspace/config.secret.yml
30+
readOnly: true
31+
subPath: config.yml
32+
restartPolicy: OnFailure
33+
volumes:
34+
- name: {{ $.Release.Name }}-config-map
35+
configMap:
36+
name: {{ $.Release.Name }}-config-map
37+
- name: {{ $.Release.Name }}-secret
38+
secret:
39+
secretName: {{ $.Release.Name }}-secret
40+
backoffLimit: 4
41+
completions: {{ .Values.initialCompletions.sources }}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
apiVersion: batch/v1
2+
kind: Job
3+
metadata:
4+
name: {{ $.Release.Name }}-job-sources-build
5+
namespace: {{ $.Release.Namespace }}
6+
annotations:
7+
checksum/config-map: {{ include (print $.Template.BasePath "/archive-query-log-config-map.yml") . | sha256sum }}
8+
checksum/elasticsearch-login: {{ include (print $.Template.BasePath "/archive-query-log-secret.k8s.yaml") . | sha256sum }}
9+
spec:
10+
template:
11+
spec:
12+
containers:
13+
- name: {{ $.Release.Name }}-job-sources-build
14+
image: "{{ .Values.image }}:{{ .Chart.AppVersion }}"
15+
imagePullPolicy: IfNotPresent
16+
resources:
17+
requests:
18+
memory: 4Gi
19+
command:
20+
- /bin/sh
21+
- -c
22+
- archive-query-log -f /workspace/config.config-map.yml -f /workspace/config.secret.yml sources build
23+
volumeMounts:
24+
- name: {{ $.Release.Name }}-config-map
25+
mountPath: /workspace/config.config-map.yml
26+
readOnly: true
27+
subPath: config.yml
28+
- name: {{ $.Release.Name }}-secret
29+
mountPath: /workspace/config.secret.yml
30+
readOnly: true
31+
subPath: config.yml
32+
restartPolicy: OnFailure
33+
volumes:
34+
- name: {{ $.Release.Name }}-config-map
35+
configMap:
36+
name: {{ $.Release.Name }}-config-map
37+
- name: {{ $.Release.Name }}-secret
38+
secret:
39+
secretName: {{ $.Release.Name }}-secret
40+
backoffLimit: 4
41+
completions: {{ .Values.initialCompletions.sources }}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apiVersion: v1
2+
kind: Secret
3+
metadata:
4+
name: {{ $.Release.Name }}-elasticsearch-login
5+
namespace: {{ $.Release.Namespace }}
6+
type: Opaque
7+
stringData:
8+
config.yml: |
9+
es:
10+
username: {{ $.Values.elasticsearch.username }}
11+
password: {{ $.Values.elasticsearch.password }}

0 commit comments

Comments
 (0)