Unverified Commit 4c250dac authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files
parent 0efc5161
Pipeline #24519 passed with stages
in 5 minutes and 56 seconds
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
\ No newline at end of file
apiVersion: v2
name: iiif-manifest-creator
description: A helm chart for the IIIF Manifest Creator
type: application
version: 0.0.0
appVersion: 0.0.0
maintainers:
- name: Sebastian Schüpbach
email: sebastian.schuepbach@unibas.ch
apiVersion: v1
kind: ConfigMap
metadata:
name: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment}}-config"
namespace: "{{ .Values.k8sNamespace }}"
data:
APPLICATION_ID: "{{ .Values.applicationId}}"
TOPIC_IN: "{{ .Values.inputTopicName }}"
TOPIC_OUT: "{{ .Values.outputTopicName }}"
TOPIC_PROCESS: "{{ .Values.reportingTopicName }}"
apiVersion: apps/v1
kind: Deployment
metadata:
name: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment}}"
namespace: "{{ .Values.k8sNamespace }}"
labels:
app: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment}}-app"
spec:
selector:
matchLabels:
app: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment}}-app"
replicas: {{ .Values.k8sReplicas}}
template:
metadata:
labels:
app: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment}}-app"
group: "{{ .Values.k8sGroupName }}"
environment: "{{ .Values.k8sEnvironment }}"
spec:
containers:
- name: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment}}-container"
image: "{{ .Values.registry }}/{{ .Values.image }}:{{ .Values.tag }}"
imagePullPolicy: Always
command: ["java"]
args: ["-Xms128m", "-Xmx256m", "-jar", "/app/app.jar"]
resources:
requests:
cpu: "{{ .Values.k8sRequestsCpu }}"
memory: "{{ .Values.k8sRequestsMemory }}"
limits:
cpu: "{{ .Values.k8sLimitsCpu }}"
memory: "{{ .Values.k8sLimitsMemory }}"
envFrom:
- configMapRef:
name: "{{ .Values.kafkaConfigs }}"
- configMapRef:
name: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment}}-config"
restartPolicy: Always
registry: "cr.gitlab.switch.ch"
image: "memoriav/memobase-2020/services/postprocessing/iiif-manifest-creator"
tag: "latest"
k8sName: iiif-manifest-creator
k8sNamespace: memobase
k8sGroupId: di
k8sGroupName: documents-import
k8sEnvironment: prod
k8sReplicas: 1
k8sRequestsCpu: "0.2"
k8sRequestsMemory: "128Mi"
k8sLimitsCpu: "0.4"
k8sLimitsMemory: "256Mi"
kafkaConfigs: prod-kafka-bootstrap-servers
# TODO: To be changed
inputTopicName: fedora-output-json-records
# TODO: To be changed
outputTopicName: iiif-manifests-v2
# TODO: To be changed
reportingTopicName: import-process-reporting
applicationId: prod-iiif-manifest-creator
groupId: prod-iiif-manifest-creator
\ No newline at end of file
registry: "cr.gitlab.switch.ch"
image: "memoriav/memobase-2020/services/postprocessing/iiif-manifest-creator"
tag: "latest"
k8sName: iiif-manifest-creator
k8sNamespace: memobase
k8sGroupId: di
k8sGroupName: documents-import
k8sEnvironment: stage
k8sReplicas: 1
k8sRequestsCpu: "0.2"
k8sRequestsMemory: "128Mi"
k8sLimitsCpu: "0.4"
k8sLimitsMemory: "256Mi"
kafkaConfigs: prod-kafka-bootstrap-servers
# TODO: To be changed
inputTopicName: fedora-output-json-records
# TODO: To be changed
outputTopicName: iiif-manifests-v2
# TODO: To be changed
reportingTopicName: import-process-reporting
applicationId: stage-iiif-manifest-creator
groupId: stage-iiif-manifest-creator
\ No newline at end of file
registry: "cr.gitlab.switch.ch"
image: "memoriav/memobase-2020/services/postprocessing/iiif-manifest-creator"
tag: "latest"
k8sName: iiif-manifest-creator
k8sNamespace: memobase
k8sGroupId: di
k8sGroupName: documents-import
k8sEnvironment: test
k8sReplicas: 1
k8sRequestsCpu: "0.2"
k8sRequestsMemory: "128Mi"
k8sLimitsCpu: "0.4"
k8sLimitsMemory: "256Mi"
kafkaConfigs: test-kafka-bootstrap-servers
# TODO: To be changed
inputTopicName: fedora-output-json-records
# TODO: To be changed
outputTopicName: iiif-manifests-v2
# TODO: To be changed
reportingTopicName: import-process-reporting
applicationId: test-iiif-manifest-creator
groupId: test-iiif-manifest-creator
\ No newline at end of file
apiVersion: apps/v1
kind: Deployment
metadata:
name: pp-iiif-manifest-creator-deployment
namespace: memobase
labels:
app: pp-iiif-manifest-creator-app
spec:
selector:
matchLabels:
app: pp-iiif-manifest-creator-app
replicas: 1
template:
metadata:
labels:
app: pp-iiif-manifest-creator-app
tier: web
spec:
containers:
- name: pp-iiif-manifest-creator-container
image: cr.gitlab.switch.ch/memoriav/memobase-2020/services/postprocessing/iiif-manifest-creator:latest
imagePullPolicy: Always
command: [ "java" ]
args: [ "-Xmx128m", "-Xmx256m", "-jar", "/app/app.jar" ]
resources:
requests:
cpu: "0.2"
memory: "128Mi"
limits:
cpu: "0.4"
memory: "256Mi"
env:
- name: JOB_ID
value: iiif-manifest-creator
- name: KAFKA_BOOTSTRAP_SERVERS
value: mb-ka1.memobase.unibas.ch:9092,mb-ka2.memobase.unibas.ch:9092,mb-ka3.memobase.unibas.ch:9092
- name: APPLICATION_ID
value: iiif-manifest-creator
- name: TOPIC_IN
value: fedora-output-json-records
- name: TOPIC_OUT
value: iiif-manifests-v2
- name: TOPIC_PROCESS
value: import-process-reporting
restartPolicy: Always
Supports Markdown
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