From 81ba53787a14db112de7ec31d0ef2016795018da Mon Sep 17 00:00:00 2001 From: andresanaya21 Date: Fri, 28 Jun 2024 16:56:10 +0200 Subject: [PATCH 1/7] mongodb log level --- helm/capif/charts/mongo/templates/deployment.yaml | 8 ++++++++ helm/capif/charts/mongo/values.yaml | 1 + helm/vault-job/vault-job.yaml | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/helm/capif/charts/mongo/templates/deployment.yaml b/helm/capif/charts/mongo/templates/deployment.yaml index 80cedad5..0066ead7 100644 --- a/helm/capif/charts/mongo/templates/deployment.yaml +++ b/helm/capif/charts/mongo/templates/deployment.yaml @@ -40,11 +40,19 @@ spec: - name: http containerPort: {{ .Values.service.port }} protocol: TCP + args: + - mongod + - "--setParameter" + - "diagnosticDataCollectionEnabled=true" + - "--setParameter" + - "logComponentVerbosity={default: {verbosity: ${MONGODB_LOG_LEVEL}}}" env: - name: MONGO_INITDB_ROOT_PASSWORD value: {{ quote .Values.env.mongoInitdbRootPassword }} - name: MONGO_INITDB_ROOT_USERNAME value: {{ quote .Values.env.mongoInitdbRootUsername }} + - name: MONGODB_LOG_LEVEL + value: {{ .Values.env.mongoLeveLog }} livenessProbe: {{- toYaml .Values.livenessProbe | nindent 12 }} readinessProbe: diff --git a/helm/capif/charts/mongo/values.yaml b/helm/capif/charts/mongo/values.yaml index 53b8cf5f..a226dba6 100644 --- a/helm/capif/charts/mongo/values.yaml +++ b/helm/capif/charts/mongo/values.yaml @@ -17,6 +17,7 @@ fullnameOverride: "" env: mongoInitdbRootPassword: example mongoInitdbRootUsername: root + mongoLeveLog: 0 serviceAccount: # Specifies whether a service account should be created diff --git a/helm/vault-job/vault-job.yaml b/helm/vault-job/vault-job.yaml index 84b247fc..a68f2f9e 100644 --- a/helm/vault-job/vault-job.yaml +++ b/helm/vault-job/vault-job.yaml @@ -76,7 +76,7 @@ data: vault write pki_int/intermediate/set-signed certificate=@capif_intermediate.cert.pem #Crear rol en Vault - vault write pki_int/roles/my-ca use_csr_common_name=true require_cn=false allowed_domains="*" allow_any_name=true allow_bare_domains=true allow_glob_domains=true allow_subdomains=true max_ttl=4300h ttl=4300h + vault write pki_int/roles/my-ca use_csr_common_name=false require_cn=false allowed_domains="*" allow_any_name=true allow_bare_domains=true allow_glob_domains=true allow_subdomains=true max_ttl=4300h ttl=4300h # Emitir un certificado firmado por la CA intermedia # vault write -format=json pki_int/issue/my-ca \ -- GitLab From 4bd20e571e0501cc165a38815d939051cdc283ca Mon Sep 17 00:00:00 2001 From: andresanaya21 Date: Fri, 28 Jun 2024 17:00:27 +0200 Subject: [PATCH 2/7] mongo log level --- helm/capif/charts/mongo/values.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/helm/capif/charts/mongo/values.yaml b/helm/capif/charts/mongo/values.yaml index a226dba6..81281b62 100644 --- a/helm/capif/charts/mongo/values.yaml +++ b/helm/capif/charts/mongo/values.yaml @@ -17,6 +17,7 @@ fullnameOverride: "" env: mongoInitdbRootPassword: example mongoInitdbRootUsername: root + # log level host 0-5. 0 min log level. 5 the max log level mongoLeveLog: 0 serviceAccount: -- GitLab From 51f71e97e658420e49f1609a92144eff5b9bc483 Mon Sep 17 00:00:00 2001 From: andresanaya21 Date: Fri, 28 Jun 2024 17:13:44 +0200 Subject: [PATCH 3/7] CD_ENV_NAME --- helm/capif/charts/mongo/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm/capif/charts/mongo/values.yaml b/helm/capif/charts/mongo/values.yaml index 81281b62..4a14c6c0 100644 --- a/helm/capif/charts/mongo/values.yaml +++ b/helm/capif/charts/mongo/values.yaml @@ -115,4 +115,4 @@ nodeSelector: {} tolerations: [] -affinity: {} +affinity: {} \ No newline at end of file -- GitLab From d5ffca5ed857653e83d9a3868ef340fb1fe9db24 Mon Sep 17 00:00:00 2001 From: andresanaya21 Date: Fri, 28 Jun 2024 17:20:15 +0200 Subject: [PATCH 4/7] mongoLeveLog --- helm/capif/charts/mongo/templates/deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm/capif/charts/mongo/templates/deployment.yaml b/helm/capif/charts/mongo/templates/deployment.yaml index 0066ead7..6c8d480c 100644 --- a/helm/capif/charts/mongo/templates/deployment.yaml +++ b/helm/capif/charts/mongo/templates/deployment.yaml @@ -52,7 +52,7 @@ spec: - name: MONGO_INITDB_ROOT_USERNAME value: {{ quote .Values.env.mongoInitdbRootUsername }} - name: MONGODB_LOG_LEVEL - value: {{ .Values.env.mongoLeveLog }} + value: {{ .Values.env.mongoLeveLog | quote }} livenessProbe: {{- toYaml .Values.livenessProbe | nindent 12 }} readinessProbe: -- GitLab From 2655e28d5042332f6db24ffe676721a06a923836 Mon Sep 17 00:00:00 2001 From: andresanaya21 Date: Fri, 28 Jun 2024 17:29:52 +0200 Subject: [PATCH 5/7] mongoLeveLog --- helm/capif/charts/mongo/templates/deployment.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/helm/capif/charts/mongo/templates/deployment.yaml b/helm/capif/charts/mongo/templates/deployment.yaml index 6c8d480c..efe4e8ed 100644 --- a/helm/capif/charts/mongo/templates/deployment.yaml +++ b/helm/capif/charts/mongo/templates/deployment.yaml @@ -45,14 +45,12 @@ spec: - "--setParameter" - "diagnosticDataCollectionEnabled=true" - "--setParameter" - - "logComponentVerbosity={default: {verbosity: ${MONGODB_LOG_LEVEL}}}" + - "logComponentVerbosity={default: {verbosity: {{ .Values.env.mongoLeveLog }} }}" env: - name: MONGO_INITDB_ROOT_PASSWORD value: {{ quote .Values.env.mongoInitdbRootPassword }} - name: MONGO_INITDB_ROOT_USERNAME value: {{ quote .Values.env.mongoInitdbRootUsername }} - - name: MONGODB_LOG_LEVEL - value: {{ .Values.env.mongoLeveLog | quote }} livenessProbe: {{- toYaml .Values.livenessProbe | nindent 12 }} readinessProbe: -- GitLab From 993260975be4b542c1899a730d6aef478c6837bb Mon Sep 17 00:00:00 2001 From: andresanaya21 Date: Fri, 28 Jun 2024 18:07:25 +0200 Subject: [PATCH 6/7] logLevel ocf core --- helm/capif/charts/mock-server/templates/deployment.yaml | 3 +++ helm/capif/charts/mock-server/values.yaml | 3 +++ helm/capif/charts/mongo/templates/deployment.yaml | 6 ------ helm/capif/charts/mongo/values.yaml | 2 -- .../ocf-access-control-policy/templates/deployment.yaml | 2 ++ helm/capif/charts/ocf-access-control-policy/values.yaml | 1 + .../ocf-api-invocation-logs/templates/deployment.yaml | 4 +++- helm/capif/charts/ocf-api-invocation-logs/values.yaml | 1 + .../ocf-api-invoker-management/templates/deployment.yaml | 4 +++- helm/capif/charts/ocf-api-invoker-management/values.yaml | 1 + .../ocf-api-provider-management/templates/deployment.yaml | 4 +++- helm/capif/charts/ocf-api-provider-management/values.yaml | 1 + .../charts/ocf-auditing-api-logs/templates/deployment.yaml | 2 ++ helm/capif/charts/ocf-auditing-api-logs/values.yaml | 1 + .../ocf-discover-service-api/templates/deployment.yaml | 2 ++ helm/capif/charts/ocf-discover-service-api/values.yaml | 1 + helm/capif/charts/ocf-events/templates/deployment.yaml | 2 ++ helm/capif/charts/ocf-events/values.yaml | 1 + helm/capif/charts/ocf-helper/templates/deployment.yaml | 2 ++ helm/capif/charts/ocf-helper/values.yaml | 3 ++- .../ocf-publish-service-api/templates/deployment.yaml | 2 ++ helm/capif/charts/ocf-publish-service-api/values.yaml | 1 + helm/capif/charts/ocf-register/templates/deployment.yaml | 2 ++ helm/capif/charts/ocf-register/values.yaml | 3 ++- .../capif/charts/ocf-routing-info/templates/deployment.yaml | 2 ++ helm/capif/charts/ocf-routing-info/values.yaml | 1 + helm/capif/charts/ocf-security/templates/deployment.yaml | 2 ++ helm/capif/charts/ocf-security/values.yaml | 1 + 28 files changed, 47 insertions(+), 13 deletions(-) diff --git a/helm/capif/charts/mock-server/templates/deployment.yaml b/helm/capif/charts/mock-server/templates/deployment.yaml index 89261d75..ea29ba94 100644 --- a/helm/capif/charts/mock-server/templates/deployment.yaml +++ b/helm/capif/charts/mock-server/templates/deployment.yaml @@ -41,6 +41,9 @@ spec: - name: http containerPort: {{ .Values.service.port }} protocol: TCP + env: + - name: LOG_LEVEL + value: {{ quote .Values.env.logLevel }} livenessProbe: {{- toYaml .Values.livenessProbe | nindent 12 }} readinessProbe: diff --git a/helm/capif/charts/mock-server/values.yaml b/helm/capif/charts/mock-server/values.yaml index cd2dfc07..a34433aa 100644 --- a/helm/capif/charts/mock-server/values.yaml +++ b/helm/capif/charts/mock-server/values.yaml @@ -16,6 +16,9 @@ imagePullSecrets: [] nameOverride: "" fullnameOverride: "" +env: + logLevel: "INFO" + serviceAccount: # Specifies whether a service account should be created create: true diff --git a/helm/capif/charts/mongo/templates/deployment.yaml b/helm/capif/charts/mongo/templates/deployment.yaml index efe4e8ed..80cedad5 100644 --- a/helm/capif/charts/mongo/templates/deployment.yaml +++ b/helm/capif/charts/mongo/templates/deployment.yaml @@ -40,12 +40,6 @@ spec: - name: http containerPort: {{ .Values.service.port }} protocol: TCP - args: - - mongod - - "--setParameter" - - "diagnosticDataCollectionEnabled=true" - - "--setParameter" - - "logComponentVerbosity={default: {verbosity: {{ .Values.env.mongoLeveLog }} }}" env: - name: MONGO_INITDB_ROOT_PASSWORD value: {{ quote .Values.env.mongoInitdbRootPassword }} diff --git a/helm/capif/charts/mongo/values.yaml b/helm/capif/charts/mongo/values.yaml index 4a14c6c0..38e4b9b9 100644 --- a/helm/capif/charts/mongo/values.yaml +++ b/helm/capif/charts/mongo/values.yaml @@ -17,8 +17,6 @@ fullnameOverride: "" env: mongoInitdbRootPassword: example mongoInitdbRootUsername: root - # log level host 0-5. 0 min log level. 5 the max log level - mongoLeveLog: 0 serviceAccount: # Specifies whether a service account should be created diff --git a/helm/capif/charts/ocf-access-control-policy/templates/deployment.yaml b/helm/capif/charts/ocf-access-control-policy/templates/deployment.yaml index 3a8000f6..987f2096 100644 --- a/helm/capif/charts/ocf-access-control-policy/templates/deployment.yaml +++ b/helm/capif/charts/ocf-access-control-policy/templates/deployment.yaml @@ -43,6 +43,8 @@ spec: value: {{ quote .Values.env.capifHostname }} - name: MONITORING value: {{ quote .Values.env.monitoring }} + - name: LOG_LEVEL + value: {{ quote .Values.env.logLevel }} livenessProbe: {{- toYaml .Values.livenessProbe | nindent 12 }} readinessProbe: diff --git a/helm/capif/charts/ocf-access-control-policy/values.yaml b/helm/capif/charts/ocf-access-control-policy/values.yaml index 2912e096..9184d264 100644 --- a/helm/capif/charts/ocf-access-control-policy/values.yaml +++ b/helm/capif/charts/ocf-access-control-policy/values.yaml @@ -17,6 +17,7 @@ fullnameOverride: "" env: capifHostname: my-capif.apps.ocp-epg.hi.inet monitoring: "true" + logLevel: "INFO" serviceAccount: # Specifies whether a service account should be created diff --git a/helm/capif/charts/ocf-api-invocation-logs/templates/deployment.yaml b/helm/capif/charts/ocf-api-invocation-logs/templates/deployment.yaml index fc3ce110..b0262fe0 100644 --- a/helm/capif/charts/ocf-api-invocation-logs/templates/deployment.yaml +++ b/helm/capif/charts/ocf-api-invocation-logs/templates/deployment.yaml @@ -49,7 +49,9 @@ spec: - name: VAULT_PORT value: {{ quote .Values.env.vaultPort }} - name: VAULT_ACCESS_TOKEN - value: {{ quote .Values.env.vaultAccessToken }} + value: {{ quote .Values.env.vaultAccessToken }} + - name: LOG_LEVEL + value: {{ quote .Values.env.logLevel }} livenessProbe: {{- toYaml .Values.livenessProbe | nindent 12 }} readinessProbe: diff --git a/helm/capif/charts/ocf-api-invocation-logs/values.yaml b/helm/capif/charts/ocf-api-invocation-logs/values.yaml index 4c4431b3..dc63d4b5 100644 --- a/helm/capif/charts/ocf-api-invocation-logs/values.yaml +++ b/helm/capif/charts/ocf-api-invocation-logs/values.yaml @@ -22,6 +22,7 @@ env: vaultAccessToken: dev-only-token mongoInitdbRootUsername: root mongoInitdbRootPassword: example + logLevel: "INFO" serviceAccount: # Specifies whether a service account should be created diff --git a/helm/capif/charts/ocf-api-invoker-management/templates/deployment.yaml b/helm/capif/charts/ocf-api-invoker-management/templates/deployment.yaml index c4fd0c90..5b210cb2 100644 --- a/helm/capif/charts/ocf-api-invoker-management/templates/deployment.yaml +++ b/helm/capif/charts/ocf-api-invoker-management/templates/deployment.yaml @@ -47,7 +47,9 @@ spec: - name: VAULT_PORT value: {{ quote .Values.env.vaultPort }} - name: VAULT_ACCESS_TOKEN - value: {{ quote .Values.env.vaultAccessToken }} + value: {{ quote .Values.env.vaultAccessToken }} + - name: LOG_LEVEL + value: {{ quote .Values.env.logLevel }} livenessProbe: {{- toYaml .Values.livenessProbe | nindent 12 }} readinessProbe: diff --git a/helm/capif/charts/ocf-api-invoker-management/values.yaml b/helm/capif/charts/ocf-api-invoker-management/values.yaml index a296a41e..e832c7d4 100644 --- a/helm/capif/charts/ocf-api-invoker-management/values.yaml +++ b/helm/capif/charts/ocf-api-invoker-management/values.yaml @@ -21,6 +21,7 @@ env: vaultAccessToken: dev-only-token mongoInitdbRootUsername: root mongoInitdbRootPassword: example + logLevel: "INFO" mongoRegister: mongoInitdbRootUsername: root mongoInitdbRootPassword: example diff --git a/helm/capif/charts/ocf-api-provider-management/templates/deployment.yaml b/helm/capif/charts/ocf-api-provider-management/templates/deployment.yaml index c5ff2156..7f95b9d6 100644 --- a/helm/capif/charts/ocf-api-provider-management/templates/deployment.yaml +++ b/helm/capif/charts/ocf-api-provider-management/templates/deployment.yaml @@ -47,7 +47,9 @@ spec: - name: VAULT_PORT value: {{ quote .Values.env.vaultPort }} - name: VAULT_ACCESS_TOKEN - value: {{ quote .Values.env.vaultAccessToken }} + value: {{ quote .Values.env.vaultAccessToken }} + - name: LOG_LEVEL + value: {{ quote .Values.env.logLevel }} livenessProbe: {{- toYaml .Values.livenessProbe | nindent 12 }} readinessProbe: diff --git a/helm/capif/charts/ocf-api-provider-management/values.yaml b/helm/capif/charts/ocf-api-provider-management/values.yaml index 019b2147..547bb054 100644 --- a/helm/capif/charts/ocf-api-provider-management/values.yaml +++ b/helm/capif/charts/ocf-api-provider-management/values.yaml @@ -21,6 +21,7 @@ env: vaultAccessToken: dev-only-token mongoInitdbRootUsername: root mongoInitdbRootPassword: example + logLevel: "INFO" mongoRegister: mongoInitdbRootUsername: root mongoInitdbRootPassword: example diff --git a/helm/capif/charts/ocf-auditing-api-logs/templates/deployment.yaml b/helm/capif/charts/ocf-auditing-api-logs/templates/deployment.yaml index 62cbf034..8248606b 100644 --- a/helm/capif/charts/ocf-auditing-api-logs/templates/deployment.yaml +++ b/helm/capif/charts/ocf-auditing-api-logs/templates/deployment.yaml @@ -42,6 +42,8 @@ spec: env: - name: MONITORING value: {{ quote .Values.env.monitoring }} + - name: LOG_LEVEL + value: {{ quote .Values.env.logLevel }} livenessProbe: {{- toYaml .Values.livenessProbe | nindent 12 }} readinessProbe: diff --git a/helm/capif/charts/ocf-auditing-api-logs/values.yaml b/helm/capif/charts/ocf-auditing-api-logs/values.yaml index 41e3d1f3..859ba129 100644 --- a/helm/capif/charts/ocf-auditing-api-logs/values.yaml +++ b/helm/capif/charts/ocf-auditing-api-logs/values.yaml @@ -18,6 +18,7 @@ env: monitoring: "true" mongoInitdbRootUsername: root mongoInitdbRootPassword: example + logLevel: "INFO" serviceAccount: # Specifies whether a service account should be created diff --git a/helm/capif/charts/ocf-discover-service-api/templates/deployment.yaml b/helm/capif/charts/ocf-discover-service-api/templates/deployment.yaml index 438b986e..0c6bfb02 100644 --- a/helm/capif/charts/ocf-discover-service-api/templates/deployment.yaml +++ b/helm/capif/charts/ocf-discover-service-api/templates/deployment.yaml @@ -42,6 +42,8 @@ spec: env: - name: MONITORING value: {{ quote .Values.env.monitoring }} + - name: LOG_LEVEL + value: {{ quote .Values.env.logLevel }} livenessProbe: {{- toYaml .Values.livenessProbe | nindent 12 }} readinessProbe: diff --git a/helm/capif/charts/ocf-discover-service-api/values.yaml b/helm/capif/charts/ocf-discover-service-api/values.yaml index b69232d4..6aa8e611 100644 --- a/helm/capif/charts/ocf-discover-service-api/values.yaml +++ b/helm/capif/charts/ocf-discover-service-api/values.yaml @@ -18,6 +18,7 @@ env: monitoring: "true" mongoInitdbRootUsername: root mongoInitdbRootPassword: example + logLevel: "INFO" serviceAccount: # Specifies whether a service account should be created diff --git a/helm/capif/charts/ocf-events/templates/deployment.yaml b/helm/capif/charts/ocf-events/templates/deployment.yaml index f94cc7b3..50b58cc9 100644 --- a/helm/capif/charts/ocf-events/templates/deployment.yaml +++ b/helm/capif/charts/ocf-events/templates/deployment.yaml @@ -42,6 +42,8 @@ spec: env: - name: MONITORING value: {{ quote .Values.env.monitoring }} + - name: LOG_LEVEL + value: {{ quote .Values.env.logLevel }} livenessProbe: {{- toYaml .Values.livenessProbe | nindent 12 }} readinessProbe: diff --git a/helm/capif/charts/ocf-events/values.yaml b/helm/capif/charts/ocf-events/values.yaml index c600141f..b3ca6b0c 100644 --- a/helm/capif/charts/ocf-events/values.yaml +++ b/helm/capif/charts/ocf-events/values.yaml @@ -18,6 +18,7 @@ env: monitoring: "true" mongoInitdbRootUsername: root mongoInitdbRootPassword: example + logLevel: "INFO" serviceAccount: # Specifies whether a service account should be created diff --git a/helm/capif/charts/ocf-helper/templates/deployment.yaml b/helm/capif/charts/ocf-helper/templates/deployment.yaml index 7c55930f..16f43a02 100644 --- a/helm/capif/charts/ocf-helper/templates/deployment.yaml +++ b/helm/capif/charts/ocf-helper/templates/deployment.yaml @@ -58,6 +58,8 @@ spec: value: {{ quote .Values.env.vaultPort }} - name: VAULT_ACCESS_TOKEN value: {{ quote .Values.env.vaultAccessToken }} + - name: LOG_LEVEL + value: {{ quote .Values.env.logLevel }} {{- with .Values.volumes }} volumes: {{- toYaml . | nindent 8 }} diff --git a/helm/capif/charts/ocf-helper/values.yaml b/helm/capif/charts/ocf-helper/values.yaml index 36e09890..f9e35bdb 100644 --- a/helm/capif/charts/ocf-helper/values.yaml +++ b/helm/capif/charts/ocf-helper/values.yaml @@ -22,7 +22,8 @@ env: mongoPort: 27017 capifHostname: capif mongoInitdbRootUsername: root - mongoInitdbRootPassword: example + mongoInitdbRootPassword: example + logLevel: "INFO" serviceAccount: # Specifies whether a service account should be created diff --git a/helm/capif/charts/ocf-publish-service-api/templates/deployment.yaml b/helm/capif/charts/ocf-publish-service-api/templates/deployment.yaml index 49d9b2ce..ceced651 100644 --- a/helm/capif/charts/ocf-publish-service-api/templates/deployment.yaml +++ b/helm/capif/charts/ocf-publish-service-api/templates/deployment.yaml @@ -42,6 +42,8 @@ spec: env: - name: MONITORING value: {{ quote .Values.env.monitoring }} + - name: LOG_LEVEL + value: {{ quote .Values.env.logLevel }} livenessProbe: {{- toYaml .Values.livenessProbe | nindent 12 }} readinessProbe: diff --git a/helm/capif/charts/ocf-publish-service-api/values.yaml b/helm/capif/charts/ocf-publish-service-api/values.yaml index 4ab3c9cd..ac32a980 100644 --- a/helm/capif/charts/ocf-publish-service-api/values.yaml +++ b/helm/capif/charts/ocf-publish-service-api/values.yaml @@ -18,6 +18,7 @@ env: monitoring: "true" mongoInitdbRootUsername: root mongoInitdbRootPassword: example + logLevel: "INFO" serviceAccount: # Specifies whether a service account should be created diff --git a/helm/capif/charts/ocf-register/templates/deployment.yaml b/helm/capif/charts/ocf-register/templates/deployment.yaml index 5437dfc8..0009f19f 100644 --- a/helm/capif/charts/ocf-register/templates/deployment.yaml +++ b/helm/capif/charts/ocf-register/templates/deployment.yaml @@ -46,6 +46,8 @@ spec: value: {{ quote .Values.env.vaultPort }} - name: VAULT_ACCESS_TOKEN value: {{ quote .Values.env.vaultAccessToken }} + - name: LOG_LEVEL + value: {{ quote .Values.env.logLevel }} livenessProbe: {{- toYaml .Values.livenessProbe | nindent 12 }} readinessProbe: diff --git a/helm/capif/charts/ocf-register/values.yaml b/helm/capif/charts/ocf-register/values.yaml index 5605ef86..ca8cfc3f 100644 --- a/helm/capif/charts/ocf-register/values.yaml +++ b/helm/capif/charts/ocf-register/values.yaml @@ -21,7 +21,8 @@ env: vaultPort: 8200 vaultAccessToken: dev-only-token capifHostname: capif-test.example.int - + logLevel: "INFO" + serviceAccount: # Specifies whether a service account should be created create: true diff --git a/helm/capif/charts/ocf-routing-info/templates/deployment.yaml b/helm/capif/charts/ocf-routing-info/templates/deployment.yaml index 2e1abf12..214f38fb 100644 --- a/helm/capif/charts/ocf-routing-info/templates/deployment.yaml +++ b/helm/capif/charts/ocf-routing-info/templates/deployment.yaml @@ -41,6 +41,8 @@ spec: env: - name: MONITORING value: {{ quote .Values.env.monitoring }} + - name: LOG_LEVEL + value: {{ quote .Values.env.logLevel }} livenessProbe: {{- toYaml .Values.livenessProbe | nindent 12 }} readinessProbe: diff --git a/helm/capif/charts/ocf-routing-info/values.yaml b/helm/capif/charts/ocf-routing-info/values.yaml index 8ba779c4..d6c6a3d6 100644 --- a/helm/capif/charts/ocf-routing-info/values.yaml +++ b/helm/capif/charts/ocf-routing-info/values.yaml @@ -16,6 +16,7 @@ fullnameOverride: "" env: monitoring: "true" + logLevel: "INFO" serviceAccount: # Specifies whether a service account should be created diff --git a/helm/capif/charts/ocf-security/templates/deployment.yaml b/helm/capif/charts/ocf-security/templates/deployment.yaml index 44bd7fa9..48ab7640 100644 --- a/helm/capif/charts/ocf-security/templates/deployment.yaml +++ b/helm/capif/charts/ocf-security/templates/deployment.yaml @@ -50,6 +50,8 @@ spec: value: {{ quote .Values.env.vaultPort }} - name: VAULT_ACCESS_TOKEN value: {{ quote .Values.env.vaultAccessToken }} + - name: LOG_LEVEL + value: {{ quote .Values.env.logLevel }} livenessProbe: {{- toYaml .Values.livenessProbe | nindent 12 }} readinessProbe: diff --git a/helm/capif/charts/ocf-security/values.yaml b/helm/capif/charts/ocf-security/values.yaml index 37b57c71..2be42885 100644 --- a/helm/capif/charts/ocf-security/values.yaml +++ b/helm/capif/charts/ocf-security/values.yaml @@ -22,6 +22,7 @@ env: vaultAccessToken: dev-only-token mongoInitdbRootUsername: root mongoInitdbRootPassword: example + logLevel: "INFO" serviceAccount: # Specifies whether a service account should be created -- GitLab From 21b74a57ffaa28ccb7364412951290f1fe700753 Mon Sep 17 00:00:00 2001 From: andresanaya21 Date: Mon, 1 Jul 2024 08:51:36 +0200 Subject: [PATCH 7/7] nginx.env.logLevel --- helm/capif/charts/nginx/templates/deployment.yaml | 2 ++ helm/capif/charts/nginx/values.yaml | 1 + 2 files changed, 3 insertions(+) diff --git a/helm/capif/charts/nginx/templates/deployment.yaml b/helm/capif/charts/nginx/templates/deployment.yaml index a5cd26c2..221ebfd0 100644 --- a/helm/capif/charts/nginx/templates/deployment.yaml +++ b/helm/capif/charts/nginx/templates/deployment.yaml @@ -48,6 +48,8 @@ spec: value: {{ quote .Values.env.vaultPort }} - name: VAULT_ACCESS_TOKEN value: {{ quote .Values.env.vaultAccessToken }} + - name: LOG_LEVEL + value: {{ quote .Values.env.logLevel }} livenessProbe: {{- toYaml .Values.livenessProbe | nindent 12 }} readinessProbe: diff --git a/helm/capif/charts/nginx/values.yaml b/helm/capif/charts/nginx/values.yaml index e3ba0017..db0541e9 100644 --- a/helm/capif/charts/nginx/values.yaml +++ b/helm/capif/charts/nginx/values.yaml @@ -19,6 +19,7 @@ env: vaultHostname: vault-internal.mon.svc.cluster.local vaultPort: 8200 vaultAccessToken: dev-only-token + logLevel: "info" serviceAccount: # Specifies whether a service account should be created -- GitLab