EOX GitLab Instance

Commit 6fe20b9a authored by Nikola Jankovic's avatar Nikola Jankovic 💻
Browse files

enabled harvester for chart

parent e1fe1133
......@@ -7,7 +7,7 @@ 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: 1.3.2
version: 1.4.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.
......
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "vs.fullname" . }}-harvester
data:
{{ {{ toYaml .Values.config.harvester | nindent 2 }}}}
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "vs.fullname" . }}-harvester
labels:
{{- include "vs.labels" . | nindent 4 }}
app.kubernetes.io/service: harvester
spec:
replicas: {{ .Values.harvester.replicaCount }}
selector:
matchLabels:
{{- include "vs.selectorLabels" . | nindent 6 }}
app.kubernetes.io/service: harvester
strategy:
rollingUpdate:
maxUnavailable: 0
type: RollingUpdate
template:
metadata:
annotations:
prometheus.io/scrape: "false"
labels:
{{- include "vs.selectorLabels" . | nindent 8 }}
app.kubernetes.io/service: harvester
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}-harvester
image: "{{ .Values.harvester.image.repository | default "registry.gitlab.eox.at/esa/prism/vs/harvester" }}:{{ .Values.harvester.image.tag | default ( print "release-" .Chart.AppVersion ) }}"
imagePullPolicy: {{ .Values.harvester.image.pullPolicy | default "IfNotPresent" }}
resources:
{{- toYaml .Values.harvester.resources | nindent 12 }}
args:
- /run-harvester.sh
env:
{{- range $key, $value := .Values.config.general }}
- name: {{ $key }}
value: {{ $value | quote }}
{{- end }}
volumeMounts:
- mountPath: /config.yaml
name: harvester-config
subPath: harvester-config.yaml
{{- range $volumes := .Values.harvester.volumeMounts }}
- {{- toYaml $volumes | nindent 16 }}
{{- end }}
{{- with .Values.harvester.affinity | default .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
volumes:
- configMap:
items:
- key: harvester-config.yaml
path: harvester-config.yaml
name: {{ include "vs.fullname" . }}-harvester-config
name: harvester-config
{{- range $volumes := .Values.harvester.volumes }}
- {{- toYaml $volumes | nindent 12 }}
{{- end }}
......@@ -183,6 +183,8 @@ config:
# example:
# - RGBNir
harvester: {}
products:
type_extractor:
xpath:
......@@ -372,6 +374,18 @@ cache:
successThreshold: 1
timeoutSeconds: 1
harvester:
image: {}
replicaCount: 0
resources:
limits:
cpu: 0.5
memory: 1Gi
requests:
cpu: 0.1
memory: 0.1Gi
affinity: {}
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment