Commit 454855a6 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Add logging label

Update labels
parent 82962fb8
Pipeline #45598 passed with stages
in 5 minutes and 28 seconds
k8sEnvironment: prod k8sEnvironment: prod
k8sReplicas: 1
k8sRequestsCpu: "0.2"
k8sRequestsMemory: "128Mi"
k8sLimitsCpu: "0.5"
k8sLimitsMemory: "300Mi"
applicationId: di-media-metadata-preprocessor-prod
bootstrapServers: prod-kafka-bootstrap-servers bootstrapServers: prod-kafka-bootstrap-servers
......
k8sEnvironment: stage k8sEnvironment: stage
k8sReplicas: 1
k8sRequestsCpu: "0.2"
k8sRequestsMemory: "128Mi"
k8sLimitsCpu: "0.5"
k8sLimitsMemory: "300Mi"
applicationId: di-media-metadata-preprocessor-stage
bootstrapServers: prod-kafka-bootstrap-servers bootstrapServers: prod-kafka-bootstrap-servers
......
k8sEnvironment: test k8sEnvironment: test
k8sReplicas: 1
k8sRequestsCpu: "0.2"
k8sRequestsMemory: "128Mi"
k8sLimitsCpu: "0.5"
k8sLimitsMemory: "300Mi"
applicationId: di-media-metadata-preprocessor-test
bootstrapServers: test-kafka-bootstrap-servers bootstrapServers: test-kafka-bootstrap-servers
......
...@@ -3,8 +3,12 @@ kind: ConfigMap ...@@ -3,8 +3,12 @@ kind: ConfigMap
metadata: metadata:
name: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment}}-config" name: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment}}-config"
namespace: "{{ .Values.k8sNamespace }}" namespace: "{{ .Values.k8sNamespace }}"
labels:
app: "{{ .Values.k8sName }}"
group: "{{ .Values.k8sGroupName }}"
environment: "{{ .Values.k8sEnvironment }}"
data: data:
APPLICATION_ID: "{{ .Values.applicationId }}" APPLICATION_ID: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment}}"
TOPIC_IN: "{{ .Values.inputTopicName }}" TOPIC_IN: "{{ .Values.inputTopicName }}"
TOPIC_OUT_AV: "{{ .Values.outputTopicAVName }}" TOPIC_OUT_AV: "{{ .Values.outputTopicAVName }}"
TOPIC_OUT_IMAGE: "{{ .Values.outputTopicImageName }}" TOPIC_OUT_IMAGE: "{{ .Values.outputTopicImageName }}"
......
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment}}" name: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment }}"
namespace: "{{ .Values.k8sNamespace }}" namespace: "{{ .Values.k8sNamespace }}"
labels: labels:
app: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment}}-app" app: "{{ .Values.k8sName }}"
group: "{{ .Values.k8sGroupName }}"
environment: "{{ .Values.k8sEnvironment }}"
spec: spec:
selector: selector:
matchLabels: matchLabels:
app: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment}}-app" app: "{{ .Values.k8sName }}"
replicas: {{ .Values.k8sReplicas}} group: "{{ .Values.k8sGroupName }}"
environment: "{{ .Values.k8sEnvironment }}"
replicas: {{ .Values.k8sReplicas }}
template: template:
metadata: metadata:
labels: labels:
app: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment}}-app" app: "{{ .Values.k8sName }}"
group: "{{ .Values.k8sGroupName }}" group: "{{ .Values.k8sGroupName }}"
environment: "{{ .Values.k8sEnvironment }}" environment: "{{ .Values.k8sEnvironment }}"
logging: "{{ .Values.k8sLogging }}"
spec: spec:
restartPolicy: Always restartPolicy: Always
containers: containers:
......
...@@ -6,12 +6,13 @@ k8sName: media-metadata-preprocessor ...@@ -6,12 +6,13 @@ k8sName: media-metadata-preprocessor
k8sNamespace: memobase k8sNamespace: memobase
k8sGroupId: di k8sGroupId: di
k8sGroupName: documents-import k8sGroupName: documents-import
k8sLogging: scala
k8sEnvironment: placeholder k8sEnvironment: placeholder
k8sReplicas: placeholder k8sReplicas: 1
k8sRequestsCpu: placeholder k8sRequestsCpu: "0.2"
k8sRequestsMemory: placeholder k8sRequestsMemory: "128Mi"
k8sLimitsCpu: placeholder k8sLimitsCpu: "0.5"
k8sLimitsMemory: placeholder k8sLimitsMemory: "300Mi"
applicationId: placeholder applicationId: placeholder
......
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