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

changes to deploy helm releases on local minikube and get a better...

changes to deploy helm releases on local minikube and get a better understanding of how things are knitted together by the memobase crew
parent da07f607
Pipeline #31136 passed with stages
in 7 minutes and 57 seconds
apiVersion: v1
kind: ConfigMap
metadata:
name: prod-kafka-bootstrap-servers
namespace: memobase
data:
# property-like keys; each key maps to a simple value
KAFKA_BOOTSTRAP_SERVERS: "host.minikube.internal:9092,host.minikube.internal:9093,host.minikube.internal:9094"
---
apiVersion: v1
kind: ConfigMap
metadata:
namespace: memobase
name: prod-institutions-index
data:
ELASTIC_INDEX: institutions-v6
---
apiVersion: v1
kind: ConfigMap
metadata:
name: prod-record-sets-index
namespace: memobase
data:
ELASTIC_INDEX: record-sets-v7
---
apiVersion: v1
data:
ELASTIC_HOST: 192.168.1.53
ELASTIC_PORT: "8080"
kind: ConfigMap
metadata:
name: prod-elastic-configs
namespace: memobase
#!/usr/bin/env bash
namespace=memobase
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-instcoordmapping-prod-config --namespace=$namespace --from-file ./institutions_coordinates_mapping/labels.csv
kubectl create cm di-instcoordmapping-test-config --namespace=$namespace --from-file ./institutions_coordinates_mapping/labels.csv
kubectl create cm di-instcoordmapping-stage-config --namespace=$namespace --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-isocode693mapping-prod-config --namespace=$namespace --from-file ./isocode-693-mapping/labels.csv
kubectl create cm di-isocode693mapping-test-config --namespace=$namespace --from-file ./isocode-693-mapping/labels.csv
kubectl create cm di-isocode693mapping-stage-config --namespace=$namespace --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
kubectl create cm di-oaiexportdefinitions-prod-config --namespace=$namespace --from-file ./oai_export_definitions/rules.json
kubectl create cm di-oaiexportdefinitions-test-config --namespace=$namespace --from-file ./oai_export_definitions/rules.json
kubectl create cm di-oaiexportdefinitions-stage-config --namespace=$namespace --from-file ./oai_export_definitions/rules.json
#!/usr/bin/env bash
namespace=memobase
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-instcoordmapping-prod-config --namespace=$namespace
kubectl delete cm di-instcoordmapping-test-config --namespace=$namespace
kubectl delete cm di-instcoordmapping-stage-config --namespace=$namespace
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-isocode693mapping-prod-config --namespace=$namespace
kubectl delete cm di-isocode693mapping-test-config --namespace=$namespace
kubectl delete cm di-isocode693mapping-stage-config --namespace=$namespace
kubectl delete cm di-oaiexportdefinitions-prod-config
kubectl delete cm di-oaiexportdefinitions-test-config
kubectl delete cm di-oaiexportdefinitions-stage-config
kubectl delete cm di-oaiexportdefinitions-prod-config --namespace=$namespace
kubectl delete cm di-oaiexportdefinitions-test-config --namespace=$namespace
kubectl delete cm di-oaiexportdefinitions-stage-config --namespace=$namespace
This diff is collapsed.
{
"settings": {
"number_of_replicas": 1,
"number_of_shards": 3
},
"mappings": {
"dynamic_templates": [
{
"filter_as_keyword": {
"path_match": "*.filter",
"mapping": {"type": "keyword"}
}
},
{
"facet_as_keyword": {
"path_match": "*.facet",
"mapping": {"type": "keyword"}
}
},
{
"add_sort_field_to_name": {
"path_match": "name.*",
"mapping": {
"fields": {
"sort": {"type": "keyword"}
}
}
}
},
{
"german_fields": {
"path_match": "*.de",
"mapping": {
"analyzer": "german",
"fields": {
"filter": {
"ignore_above": 256,
"type": "keyword"
}
},
"type": "text"
}
}
},
{
"french_fields": {
"path_match": "*.fr",
"mapping": {
"analyzer": "french",
"fields": {
"filter": {
"ignore_above": 256,
"type": "keyword"
}
},
"type": "text"
}
}
},
{
"italian_fields": {
"path_match": "*.it",
"mapping": {
"analyzer": "italian",
"fields": {
"filter": {
"ignore_above": 256,
"type": "keyword"
}
},
"type": "text"
}
}
},
{
"unknown_language_fields": {
"path_match": "*.un",
"mapping": {
"fields": {
"filter": {
"ignore_above": 256,
"type": "keyword"
}
},
"type": "text"
}
}
}
],
"date_detection": false,
"properties": {
"address": {"type": "text"},
"canton": {
"properties": {
"name": {
"properties": {
"de": {
"type": "text",
"fields": {
"filter": {
"type": "keyword",
"ignore_above": 256
}
},
"analyzer": "german"
},
"fr": {
"type": "text",
"fields": {
"filter": {
"type": "keyword",
"ignore_above": 256
}
},
"analyzer": "french"
},
"it": {
"type": "text",
"fields": {
"filter": {
"type": "keyword",
"ignore_above": 256
}
},
"analyzer": "italian"
}
}
}
}
},
"city": {
"properties": {
"de": {
"type": "text",
"fields": {
"filter": {
"type": "keyword",
"ignore_above": 256
}
},
"analyzer": "german"
},
"fr": {
"type": "text",
"fields": {
"filter": {
"type": "keyword",
"ignore_above": 256
}
},
"analyzer": "french"
},
"it": {
"type": "text",
"fields": {
"filter": {
"type": "keyword",
"ignore_above": 256
}
},
"analyzer": "italian"
},
"un": {
"type": "text",
"fields": {
"filter": {
"type": "keyword",
"ignore_above": 256
}
}
}
}
},
"description": {
"properties": {
"de": {
"type": "text",
"fields": {
"filter": {
"type": "keyword",
"ignore_above": 256
}
},
"analyzer": "german"
},
"fr": {
"type": "text",
"fields": {
"filter": {
"type": "keyword",
"ignore_above": 256
}
},
"analyzer": "french"
},
"it": {
"type": "text",
"fields": {
"filter": {
"type": "keyword",
"ignore_above": 256
}
},
"analyzer": "italian"
},
"un": {
"type": "text",
"fields": {
"filter": {
"type": "keyword",
"ignore_above": 256
}
}
}
}
},
"documentType": {
"properties": {
"filter": {"type": "keyword"},
"name": {
"properties": {
"de": {
"type": "text",
"fields": {
"filter": {
"type": "keyword",
"ignore_above": 256
}
},
"analyzer": "german"
},
"fr": {
"type": "text",
"fields": {
"filter": {
"type": "keyword",
"ignore_above": 256
}
},
"analyzer": "french"
},
"it": {
"type": "text",
"fields": {
"filter": {
"type": "keyword",
"ignore_above": 256
}
},
"analyzer": "italian"
}
}
}
}
},
"id": {"type": "keyword"},
"isPublished": {"type": "boolean"},
"keyVisualLink": {"type": "keyword"},
"lastUpdatedDate": {
"type": "keyword",
"fields": {
"sort": {"type": "date"}
}
},
"name": {
"properties": {
"de": {
"type": "text",
"fields": {
"sort": {"type": "keyword"}
}
},
"fr": {
"type": "text",
"fields": {
"sort": {"type": "keyword"}
}
},
"it": {
"type": "text",
"fields": {
"sort": {"type": "keyword"}
}
}
}
},
"numberOfDocuments": {"type": "long"},
"numberOfDocumentsPublished": {"type": "long"},
"numberOfRecordSets": {"type": "long"},
"postalCodes": {"type": "text"},
"published": {"type": "boolean"},
"teaserColor": {"type": "keyword"},
"teaserColorComputed": {"type": "keyword"},
"type": {
"properties": {
"filter": {"type": "keyword"},
"name": {
"properties": {
"de": {
"type": "text",
"fields": {
"filter": {
"type": "keyword",
"ignore_above": 256
}
},
"analyzer": "german"
},
"fr": {
"type": "text",
"fields": {
"filter": {
"type": "keyword",
"ignore_above": 256
}
},
"analyzer": "french"
},
"it": {
"type": "text",
"fields": {
"filter": {
"type": "keyword",
"ignore_above": 256
}
},
"analyzer": "italian"
}
}
}
}
}
}
}
}
{
"index_patterns": [
"oai*"
],
"settings": {
"number_of_replicas": 1,
"number_of_shards": 3
......@@ -9,30 +6,21 @@
"mappings": {
"date_detection": false,
"properties": {
"id": {
"type": "keyword"
},
"document": {
"type": "keyword",
"index": false
},
"format": {
"type": "keyword"
},
"published": {
"type": "boolean"
},
"recordset": {
"type": "keyword"
"type": "binary",
"store": true
},
"format": {"type": "keyword"},
"id": {"type": "keyword"},
"institution": {"type": "keyword"},
"lastUpdatedDate": {
"type": "keyword",
"fields": {
"sort": {
"type": "date"
}
"sort": {"type": "date"}
}
}
},
"published": {"type": "boolean"},
"recordset": {"type": "keyword"}
}
}
}
This diff is collapsed.
tag: "latest"
tag: "0.3.1"
k8sEnvironment: stage
......
tag: "latest"
tag: "0.3.1"
k8sEnvironment: test
......
registry: "cr.gitlab.switch.ch"
image: "memoriav/memobase-2020/services/postprocessing/rico-edm-transformer"
#image: guenterh/rico-edm-transformer
tag: placeholder
k8sName: rico-edm-transformer
......
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