From 487d003ae2c4df19b49c5aa1aac16568850a8b6a Mon Sep 17 00:00:00 2001 From: Jonny Date: Thu, 1 Dec 2022 14:39:35 +0000 Subject: [PATCH] add optional annotations to pods for logging format --- charts/budibase/templates/app-service-deployment.yaml | 3 +++ charts/budibase/templates/proxy-service-deployment.yaml | 3 +++ charts/budibase/templates/worker-service-deployment.yaml | 3 +++ charts/budibase/values.yaml | 6 ++++++ 4 files changed, 15 insertions(+) diff --git a/charts/budibase/templates/app-service-deployment.yaml b/charts/budibase/templates/app-service-deployment.yaml index 72d9fc93a9..d0da688edc 100644 --- a/charts/budibase/templates/app-service-deployment.yaml +++ b/charts/budibase/templates/app-service-deployment.yaml @@ -4,6 +4,9 @@ metadata: annotations: kompose.cmd: kompose convert kompose.version: 1.21.0 (992df58d8) +{{ if .Values.globals.logAnnotations }} +{{ toYaml .Values.globals.logAnnotations | indent 4 }} +{{ end }} creationTimestamp: null labels: io.kompose.service: app-service diff --git a/charts/budibase/templates/proxy-service-deployment.yaml b/charts/budibase/templates/proxy-service-deployment.yaml index 5588022032..3cde7a2388 100644 --- a/charts/budibase/templates/proxy-service-deployment.yaml +++ b/charts/budibase/templates/proxy-service-deployment.yaml @@ -4,6 +4,9 @@ metadata: annotations: kompose.cmd: kompose convert kompose.version: 1.21.0 (992df58d8) +{{ if .Values.globals.logAnnotations }} +{{ toYaml .Values.globals.logAnnotations | indent 4 }} +{{ end }} creationTimestamp: null labels: app.kubernetes.io/name: budibase-proxy diff --git a/charts/budibase/templates/worker-service-deployment.yaml b/charts/budibase/templates/worker-service-deployment.yaml index df692a0723..fc443f25f8 100644 --- a/charts/budibase/templates/worker-service-deployment.yaml +++ b/charts/budibase/templates/worker-service-deployment.yaml @@ -4,6 +4,9 @@ metadata: annotations: kompose.cmd: kompose convert kompose.version: 1.21.0 (992df58d8) +{{ if .Values.globals.logAnnotations }} +{{ toYaml .Values.globals.logAnnotations | indent 4 }} +{{ end }} creationTimestamp: null labels: io.kompose.service: worker-service diff --git a/charts/budibase/values.yaml b/charts/budibase/values.yaml index a2a761aa86..a8b28084f4 100644 --- a/charts/budibase/values.yaml +++ b/charts/budibase/values.yaml @@ -22,6 +22,12 @@ serviceAccount: podAnnotations: {} +# logAnnotations: +# co.elastic.logs/multiline.type: pattern +# co.elastic.logs/multiline.pattern: '^[[:space:]]' +# co.elastic.logs/multiline.negate: false +# co.elastic.logs/multiline.match: after + podSecurityContext: {} # fsGroup: 2000