Commit da07f607 authored by Günter Hipler's avatar Günter Hipler
Browse files

modified helm configurations: added additional files which will be mounted as volumes

parent 3e038c90
Pipeline #30155 passed with stages
in 7 minutes and 1 second
#!/usr/bin/env bash
cd ../configs
kubectl create cm di-instcoordmapping-prod-config --from-file ./institutions_coordinates_mapping/labels.csv
kubectl create cm di-instcoordmapping-test-config --from-file ./institutions_coordinates_mapping/labels.csv
kubectl create cm di-instcoordmapping-stage-config --from-file ./institutions_coordinates_mapping/labels.csv
kubectl create cm di-isocode693mapping-prod-config --from-file ./isocode-693-mapping/labels.csv
kubectl create cm di-isocode693mapping-test-config --from-file ./isocode-693-mapping/labels.csv
kubectl create cm di-isocode693mapping-stage-config --from-file ./isocode-693-mapping/labels.csv
kubectl create cm di-oaiexportdefinitions-prod-config --from-file ./oai_export_definitions/rules.json
kubectl create cm di-oaiexportdefinitions-test-config --from-file ./oai_export_definitions/rules.json
kubectl create cm di-oaiexportdefinitions-stage-config --from-file ./oai_export_definitions/rules.json
#!/usr/bin/env bash
kubectl delete cm di-instcoordmapping-prod-config
kubectl delete cm di-instcoordmapping-test-config
kubectl delete cm di-instcoordmapping-stage-config
kubectl delete cm di-isocode693mapping-prod-config
kubectl delete cm di-isocode693mapping-test-config
kubectl delete cm di-isocode693mapping-stage-config
kubectl delete cm di-oaiexportdefinitions-prod-config
kubectl delete cm di-oaiexportdefinitions-test-config
kubectl delete cm di-oaiexportdefinitions-stage-config
tag: "latest"
k8sEnvironment: prod
k8sReplicas: 1
k8sRequestsCpu: "0.2"
......@@ -15,6 +18,3 @@ elasticHostConfigs: prod-elastic-configs
institutionIndexCM: prod-institutions-index
recordSetIndexCM: prod-record-sets-index
isocodeMapping: placeholder # TODO: Set value
institutionsCoordinates: placeholder # TODO: Set value
exportDefinitionRules: placeholder # TODO: Set value
tag: "latest"
k8sEnvironment: stage
k8sReplicas: 1
k8sRequestsCpu: "0.2"
......@@ -15,6 +18,3 @@ elasticHostConfigs: stage-elastic-configs
institutionIndexCM: stage-institutions-index
recordSetIndexCM: stage-record-sets-index
isocodeMapping: placeholder # TODO: Set value
institutionsCoordinates: placeholder # TODO: Set value
exportDefinitionRules: placeholder # TODO: Set value
tag: "latest"
k8sEnvironment: test
k8sReplicas: 1
k8sRequestsCpu: "0.2"
......@@ -15,6 +18,3 @@ elasticHostConfigs: test-elastic-configs
institutionIndexCM: test-institutions-index
recordSetIndexCM: test-record-sets-index
isocodeMapping: placeholder # TODO: Set value
institutionsCoordinates: placeholder # TODO: Set value
exportDefinitionRules: placeholder # TODO: Set value
......@@ -30,6 +30,14 @@ spec:
limits:
cpu: "{{ .Values.k8sLimitsCpu }}"
memory: "{{ .Values.k8sLimitsMemory }}"
volumeMounts:
- mountPath: /configs/institutions_coordinates_mapping
name: institudtioncoordmapping
- mountPath: /configs/isocode_693_mapping
name: isocode693mapping
- mountPath: /configs/oai_export_definitions
name: oaiexportdefinitions
env:
- name: INSTITUTION_INDEX
valueFrom:
......@@ -48,4 +56,26 @@ spec:
name: "{{ .Values.elasticHostConfigs }}"
- configMapRef:
name: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment}}-config"
volumes:
- name: institudtioncoordmapping
configMap:
name: "{{ .Values.k8sGroupId }}-instcoordmapping-{{ .Values.k8sEnvironment}}-config"
items:
- key: labels.csv
path: labels.csv
- name: isocode693mapping
configMap:
name: "{{ .Values.k8sGroupId }}-isocode693mapping-{{ .Values.k8sEnvironment}}-config"
items:
- key: labels.csv
path: labels.csv
- name: oaiexportdefinitions
configMap:
name: "{{ .Values.k8sGroupId }}-oaiexportdefinitions-{{ .Values.k8sEnvironment}}-config"
items:
- key: rules.json
path: rules.json
restartPolicy: Always
registry: "cr.gitlab.switch.ch"
image: "memoriav/memobase-2020/services/postprocessing/rico-edm-transformer"
tag: "latest"
tag: placeholder
k8sName: rico-edm-transformer
k8sNamespace: memobase
......@@ -24,6 +24,6 @@ elasticHostConfigs: placeholder
institutionIndexCM: placeholder
recordSetIndexCM: placeholder
isocodeMapping: placeholder
institutionsCoordinates: placeholder
exportDefinitionRules: placeholder
isocodeMapping: "/configs/isocode_693_mapping/labels.csv"
institutionsCoordinates: "/configs/institutions_coordinates_mapping/labels.csv"
exportDefinitionRules: "/configs/oai_export_definitions/rules.json"
......@@ -48,7 +48,6 @@ object Main extends Logging {
Keys.ELASTIC_PORT,
Keys.INSTITUTION_INDEX,
Keys.RECORDSET_INDEX,
Keys.ELASTIC_CLUSTERNAME,
Keys.EXPORT_DEFINITION_RULES,
).asJava,
"app.yml",
......
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