Skip to content
Snippets Groups Projects
Commit b31f5f3e 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 64f96413
No related branches found
No related tags found
1 merge request!382GONRG-10103: add global log level to services
...@@ -31,33 +31,33 @@ First you need to set variables in **values.yaml** file using any code editor. S ...@@ -31,33 +31,33 @@ First you need to set variables in **values.yaml** file using any code editor. S
| Name | Description | Type | Default |Required | | Name | Description | Type | Default |Required |
|------|-------------|------|---------|---------| |------|-------------|------|---------|---------|
**global.domain** | your domain for the external endpoint, ex `example.com` | string | - | yes **global.domain** | your domain for the external endpoint, ex `example.com` | string | - | yes
**global.onPremEnabled** | whether on-prem is enabled | boolean | false | yes **global.onPremEnabled** | whether on-prem is enabled | boolean | `false` | yes
**global.limitsEnabled** | whether CPU and memory limits are enabled | boolean | true | yes **global.limitsEnabled** | whether CPU and memory limits are enabled | boolean | `true` | yes
**global.logLevel** | severity of logging level | string | `ERROR` | yes
### Configmap variables ### Configmap variables
| Name | Description | Type | Default |Required | | Name | Description | Type | Default |Required |
|------|-------------|------|---------|---------| |------|-------------|------|---------|---------|
**data.logLevel** | logging level | string | ERROR | yes **data.logLevel** | logging severity level for this service only | string | - | yes, only if differs from the `global.logLevel`
**data.entitlementsHost** | entitlements service host address | string | `http://entitlements` | yes **data.entitlementsHost** | entitlements service host address | string | `http://entitlements` | yes
### Deployment variables ### Deployment variables
| Name | Description | Type | Default |Required | | Name | Description | Type | Default |Required |
|------|-------------|------|---------|---------| |------|-------------|------|---------|---------|
**data.requestsCpu** | amount of requested CPU | string | 10m | yes **data.requestsCpu** | amount of requested CPU | string | `10m` | yes
**data.requestsMemory** | amount of requested memory| string | 350Mi | yes **data.requestsMemory** | amount of requested memory| string | `350Mi` | yes
**data.limitsCpu** | CPU limit | string | 1 | only if `global.limitsEnabled` is true **data.limitsCpu** | CPU limit | string | `1` | only if `global.limitsEnabled` is true
**data.limitsMemory** | memory limit | string | 1G | 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 | unit | yes **data.serviceAccountName** | name of your service account | string | `unit` | yes
**data.imagePullPolicy** | when to pull image | string | IfNotPresent | yes **data.imagePullPolicy** | when to pull image | string | `IfNotPresent` | yes
**data.image** | service image | string | - | yes **data.image** | service image | string | - | yes
### Config variables ### Config variables
| Name | Description | Type | Default |Required | | Name | Description | Type | Default |Required |
|------|-------------|------|---------|---------| |------|-------------|------|---------|---------|
**conf.appName** | name of the app | string | `unit` | yes **conf.appName** | name of the app | string | `unit` | yes
**conf.configmap** | configmap to be used | string | `unit-config` | yes **conf.configmap** | configmap to be used | string | `unit-config` | yes
......
...@@ -6,5 +6,5 @@ metadata: ...@@ -6,5 +6,5 @@ metadata:
name: {{ .Values.conf.configmap | quote }} name: {{ .Values.conf.configmap | quote }}
namespace: {{ .Release.Namespace | quote }} namespace: {{ .Release.Namespace | quote }}
data: data:
LOG_LEVEL: {{ .Values.data.logLevel | quote }} LOG_LEVEL: {{ .Values.data.logLevel | default .Values.global.logLevel | quote }}
ENTITLEMENTS_HOST: {{ .Values.data.entitlementsHost | quote }} ENTITLEMENTS_HOST: {{ .Values.data.entitlementsHost | quote }}
...@@ -6,9 +6,10 @@ global: ...@@ -6,9 +6,10 @@ global:
domain: "" domain: ""
onPremEnabled: false onPremEnabled: false
limitsEnabled: true limitsEnabled: true
logLevel: "ERROR"
data: data:
logLevel: "ERROR" logLevel: ""
entitlementsHost: "http://entitlements" entitlementsHost: "http://entitlements"
requestsCpu: "5m" requestsCpu: "5m"
requestsMemory: "275Mi" requestsMemory: "275Mi"
......
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