Commit 406d4d8a authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

change to helm-based deployment

parent c3dee9be
Pipeline #24394 passed with stages
in 5 minutes and 31 seconds
......@@ -15,6 +15,8 @@ include:
file: 'docker-image/docker-image.yml'
- project: 'memoriav/memobase-2020/utilities/ci-templates'
file: 'sbt-build/sbt-build.yml'
- project: 'memoriav/memobase-2020/utilities/ci-templates'
file: 'helm-chart/helm-chart.yml'
cache:
key: "$CI_BUILD_REF_NAME"
......@@ -22,4 +24,4 @@ cache:
- "sbt-cache/ivy/cache"
- "sbt-cache/boot"
- "sbt-cache/sbtboot"
- "sbt-cache/target"
\ No newline at end of file
- "sbt-cache/target"
# 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: record-deleter
description: A helm chart for the Record Deleter
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:
GROUP_ID: "{{ .Values.groupId}}"
CLIENT_ID: "{{ .Values.clientId}}"
TOPIC_IN: "{{ .Values.inputTopicName }}"
TOPIC_PROCESS: "{{ .Values.reportingTopicName }}"
MARIADB_TABLES: "{{ .Values.mariadbTables }}"
MEDIA_FOLDER_ROOT_PATH: "{{ .Values.mediaFolderRootPath}}"
registry: "cr.gitlab.switch.ch"
image: "memoriav/memobase-2020/services/deletion-components/record-deleter"
tag: "latest"
k8sName: deleter
k8sNamespace: memobase
k8sGroupId: dd
k8sGroupName: documents-delete
k8sEnvironment: prod
k8sReplicas: 1
k8sRequestsCpu: "0.2"
k8sRequestsMemory: "0.2Gi"
k8sLimitsCpu: "1"
k8sLimitsMemory: "1Gi"
kafkaConfigs: prod-kafka-bootstrap-servers
inputTopicName: delete-process-deletes
reportingTopicName: delete-process-reporting
clientId: record-deleter
groupId: record-deleter
elasticConfigs: prod-elastic-configs
documentsIndexConfig: documents-index
# TODO: To be changed (is environment-specific)
mediaVolumeClaimName: "media-volume-claim"
mediaFolderRootPath: "/data"
mariadbDatabaseConfigs: prod-mariadb-db-medienserver-configs
mariadbUserSecrets: prod-mariadb-user-medienserver-secrets
mariadbTables: "entities,metadata,iiif_manifests_v2,iiif_manifests_v3"
......@@ -57,9 +57,9 @@ trait AppSettings {
}
val inputTopic: String = sys.env("TOPIC_IN")
val reportingTopic: String = sys.env("TOPIC_PROCESS")
val esHost: String = sys.env("ES_HOST")
val esIndex: String = sys.env("ES_INDEX")
val mariaDBHost: String = sys.env("MARIADB_HOST")
val esHost: String = s"${sys.env("ELASTIC_HOST")}:${sys.env("ELASTIC_PORT")}"
val esIndex: String = sys.env("ELASTIC_INDEX")
val mariaDBHost: String = s"jdbc:mariadb://${sys.env("MARIADB_HOST")}:${sys.env("MARIADB_PORT")}/${sys.env("MARIADB_DATABASE")}"
val mariaDBPassword: String = sys.env("MARIADB_PASSWORD")
val mariaDBTables: List[String] = sys
.env("MARIADB_TABLES")
......
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