Skip to content
Snippets Groups Projects
Commit 4042f39c authored by Vadzim Beuzo  [EPAM / GCP]'s avatar Vadzim Beuzo [EPAM / GCP] Committed by Oleksandr Kosse (EPAM)
Browse files

GONRG-10103: add global log level to services

parent 563c9c7a
No related branches found
No related tags found
1 merge request!496GONRG-10103: add global log level to services
......@@ -67,7 +67,7 @@ The following software have components provided under the terms of this license:
- Byte Buddy (without dependencies) (from https://repo1.maven.org/maven2/net/bytebuddy/byte-buddy)
- Byte Buddy Java agent (from https://repo1.maven.org/maven2/net/bytebuddy/byte-buddy-agent)
- ClassMate (from http://github.com/cowtowncoder/java-classmate)
- Cloud Key Management Service (KMS) API (from https://repo1.maven.org/maven2/com/google/apis/google-api-services-cloudkms)
- Cloud Key Management Service (KMS) API v1-rev20240801-2.0.0 (from https://repo1.maven.org/maven2/com/google/apis/google-api-services-cloudkms)
- Collections (from https://repo1.maven.org/maven2/commons-collections/commons-collections)
- Commons Digester (from http://commons.apache.org/digester/)
- Converter: Jackson (from https://github.com/square/retrofit, https://repo1.maven.org/maven2/com/squareup/retrofit2/converter-jackson)
......
......@@ -32,56 +32,57 @@ First you need to set variables in **values.yaml** file using any code editor. S
| Name | Description | Type | Default |Required |
|------|-------------|------|---------|---------|
**global.domain** | your domain for the external endpoint, ex `example.com` | string | - | yes
**global.onPremEnabled** | whether on-prem is enabled | boolean | false | yes
**global.limitsEnabled** | whether CPU and memory limits are enabled | boolean | true | yes
**global.onPremEnabled** | whether on-prem is enabled | boolean | `false` | yes
**global.limitsEnabled** | whether CPU and memory limits are enabled | boolean | `true` | yes
**global.logLevel** | severity of logging level | string | `ERROR` | yes
### Configmap variables
| Name | Description | Type | Default |Required |
|------|-------------|------|---------|---------|
**data.logLevel** | logging level | string | INFO | yes
**data.logLevel** | logging severity level for this service only | string | - | yes, only if differs from the `global.logLevel`
**data.googleCloudProject** | your Google Cloud cloud project | string | -| yes
**data.entitlementsHost** | Entitlements host | string | "<http://entitlements>" | yes
**data.partitionHost** | Partition host | string | "<http://partition>" | yes
**data.entitlementsHost** | Entitlements host | string | `http://entitlements` | yes
**data.partitionHost** | Partition host | string | `http://partition` | yes
**data.recordsChangedPubsubEndpoint** | Endpoint to PubSub topic | string | - | yes
**data.storageHost** | Storage host | string | "<http://storage>" | yes
**data.secretHost** | Secret host | string | "<http://secret>" | yes
**data.serviceIdentity** | Service account in Google Cloud fo PubSub | string | "register-pubsub-identity" | yes
**data.keyRing** | Type of keys | string | "csqp" | yes
**data.kmsKey** | Key management service key (must be replaced during installation) | string | "registerService" | yes
**data.subscriberPrivateKeyId** | Subscriber test private key id (must be replaced during installation) | string | "testkey" | yes
**data.storageHost** | Storage host | string | `http://storage` | yes
**data.secretHost** | Secret host | string | `http://secret` | yes
**data.serviceIdentity** | Service account in Google Cloud fo PubSub | string | `register-pubsub-identity` | yes
**data.keyRing** | Type of keys | string | `csqp` | yes
**data.kmsKey** | Key management service key (must be replaced during installation) | string | `registerService` | yes
**data.subscriberPrivateKeyId** | Subscriber test private key id (must be replaced during installation) | string | `testkey` | yes
### Deployment variables
| Name | Description | Type | Default |Required |
|------|-------------|------|---------|---------|
**data.image** | your image name | string | - | yes
**data.requestsCpu** | amount of requests CPU | string | 10m | yes
**data.requestsMemory** | amount of requests memory| string | 450Mi | yes
**data.limitsCpu** | CPU limit | string | 1.5 | only if `global.limitsEnabled` is true
**data.limitsMemory** | memory limit | string | 1G | only if `global.limitsEnabled` is true
**data.serviceAccountName** | name of your service account | string | register | yes
**data.imagePullPolicy** | when to pull image | string | IfNotPresent | yes
**data.requestsCpu** | amount of requests CPU | string | `10m` | yes
**data.requestsMemory** | amount of requests memory| string | `450Mi` | yes
**data.limitsCpu** | CPU limit | string | `1.5` | only if `global.limitsEnabled` is true
**data.limitsMemory** | memory limit | string | `1G` | only if `global.limitsEnabled` is true
**data.serviceAccountName** | name of your service account | string | `register` | yes
**data.imagePullPolicy** | when to pull image | string | `IfNotPresent` | yes
### Config variables
| Name | Description | Type | Default |Required |
|------|-------------|------|---------|---------|
**conf.appName** | name of the app | string | register | yes
**conf.configmap** | configmap to be used | string | register-config | yes
**conf.registerPostgresSecretName** | secret for postgres | string | register-postgres-secret | yes
**conf.registerKeycloakSecretName** | secret for keycloak | string | register-keycloak-secret | yes
**conf.registerKmsSecretName** | secret for kms | string | "register-kms-secret" | yes
**conf.rabbitmqSecretName** | secret for rabbitmq | string | rabbitmq-secret | yes
**conf.appName** | name of the app | string | `register` | yes
**conf.configmap** | configmap to be used | string | `register-config` | yes
**conf.registerPostgresSecretName** | secret for postgres | string | `register-postgres-secret` | yes
**conf.registerKeycloakSecretName** | secret for keycloak | string | `register-keycloak-secret` | yes
**conf.registerKmsSecretName** | secret for kms | string | `register-kms-secret` | yes
**conf.rabbitmqSecretName** | secret for rabbitmq | string | `rabbitmq-secret` | yes
### ISTIO variables
| Name | Description | Type | Default |Required |
|------|-------------|------|---------|---------|
**istio.proxyCPU** | CPU request for Envoy sidecars | string | 10m | yes
**istio.proxyCPULimit** | CPU limit for Envoy sidecars | string | 200m | yes
**istio.proxyMemory** | memory request for Envoy sidecars | string | 64Mi | yes
**istio.proxyMemoryLimit** | memory limit for Envoy sidecars | string | 256Mi | yes
**istio.proxyCPU** | CPU request for Envoy sidecars | string | `10m` | yes
**istio.proxyCPULimit** | CPU limit for Envoy sidecars | string | `200m` | yes
**istio.proxyMemory** | memory request for Envoy sidecars | string | `64Mi` | yes
**istio.proxyMemoryLimit** | memory limit for Envoy sidecars | string | `256Mi` | yes
### Install the helm chart
......
......@@ -6,7 +6,7 @@ metadata:
name: {{ .Values.conf.configmap | quote }}
namespace: {{ .Release.Namespace | quote }}
data:
LOG_LEVEL: {{ .Values.data.logLevel | quote }}
LOG_LEVEL: {{ .Values.data.logLevel | default .Values.global.logLevel | quote }}
SUBSCRIBER_PRIVATE_KEY_ID: {{ .Values.data.subscriberPrivateKeyId | quote }}
{{- if not .Values.global.onPremEnabled }}
GOOGLE_CLOUD_PROJECT: {{ .Values.data.googleCloudProject | quote }}
......
......@@ -6,10 +6,11 @@ global:
domain: ""
onPremEnabled: false
limitsEnabled: true
logLevel: "ERROR"
data:
#Configmap
logLevel: "ERROR"
logLevel: ""
googleCloudProject: ""
entitlementsHost: "http://entitlements"
partitionHost: "http://partition"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment