From 03f4da6fdb48ba063e2467e4bec3fd825951dcb8 Mon Sep 17 00:00:00 2001 From: Rub21 Date: Tue, 1 Aug 2023 16:29:57 -0500 Subject: [PATCH] Add env var for monitoring --- .../jobs/replication-monitoring-job.yaml | 8 +++++-- osm-seed/values.yaml | 23 +++++++++++++++++++ 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/osm-seed/templates/jobs/replication-monitoring-job.yaml b/osm-seed/templates/jobs/replication-monitoring-job.yaml index 1d8b4686..ef5cd5bc 100644 --- a/osm-seed/templates/jobs/replication-monitoring-job.yaml +++ b/osm-seed/templates/jobs/replication-monitoring-job.yaml @@ -46,8 +46,12 @@ spec: value: {{ .Values.db.env.POSTGRES_USER }} - name: CLOUDPROVIDER value: {{ .Values.cloudProvider }} - - name: OVERWRITE_PLANET_FILE - value: {{ .Values.monitoringReplication.env.OVERWRITE_PLANET_FILE | quote}} + - name: REPLICATION_FOLDER + value: replication/minute + - name: CREATE_MISSING_FILES + value: {{ .Values.monitoringReplication.env.CREATE_MISSING_FILES }} + - name: REPLICATION_SEQUENCE_NUMBER + value: {{ .Values.monitoringReplication.env.REPLICATION_SEQUENCE_NUMBER }} # In case cloudProvider=aws {{- if eq .Values.cloudProvider "aws" }} - name: AWS_S3_BUCKET diff --git a/osm-seed/values.yaml b/osm-seed/values.yaml index 330cc8dc..09c5cfbb 100644 --- a/osm-seed/values.yaml +++ b/osm-seed/values.yaml @@ -665,3 +665,26 @@ osmSimpleMetrics: cpu: '2' nodeSelector: enabled: false + +# ==================================================================================================== +# Variables for osm-simple-metrics +# ==================================================================================================== +monitoringReplication: + enabled: false + image: + name: '' + tag: '' + schedule: '* */1 * * *' + env: + CREATE_MISSING_FILES: empty + REPLICATION_SEQUENCE_NUMBER: "109789" + resources: + enabled: false + requests: + memory: '1Gi' + cpu: '2' + limits: + memory: '2Gi' + cpu: '2' + nodeSelector: + enabled: false