Skip to content
Snippets Groups Projects
Commit 2f45e463 authored by Vadzim Beuzo  [EPAM / GCP]'s avatar Vadzim Beuzo [EPAM / GCP] Committed by Aliaksandr Ramanovich (EPAM)
Browse files

GONRG-10103: add global log level to services

parent 952b9673
No related branches found
No related tags found
2 merge requests!525Cherry-pick 'Ibm buildversion fix' into 'release/0.27',!517GONRG-10103: add global log level to services
......@@ -32,46 +32,47 @@ 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 baremetal is enabled | boolean | false | yes
**global.limitsEnabled** | whether CPU and memory limits are enabled | boolean | true | yes
**global.onPremEnabled** | whether baremetal is enabled | boolean | `false` | yes
**global.limitsEnabled** | whether CPU and memory limits are enabled | boolean | `true` | yes
**global.dataPartitionId** | data partition id | string | - | yes
**global.logLevel** | severity of logging level | string | `ERROR` | yes
### Common 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.image** | policy image name | string | - | yes
**data.requestsCpu** | amount of requests CPU | string | 10m | yes
**data.requestsMemory** | amount of requests memory| string | 200Mi | yes
**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.requestsCpu** | amount of requests CPU | string | `10m` | yes
**data.requestsMemory** | amount of requests memory| string | `200Mi` | yes
**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.serviceAccountName** | name of your service account | string | - | yes
**data.imagePullPolicy** | when to pull image | string | IfNotPresent | yes
**data.imagePullPolicy** | when to pull image | string | `IfNotPresent` | yes
**data.bucketName** | bucket name | string | - | yes
**data.scopes** | scope of OPA | string | "<https://www.googleapis.com/auth/devstorage.read_only>" | yes
**data.entitlementsHost** | Entitlements host | string | "<http://entitlements>" | yes
**data.entitlementsBasePath** | Entitlements path | string | "/api/entitlements/v2/groups" | yes
**data.useBundles** | use bundle or not | string | "yes" | yes
**data.legalHost** | Legal host | string | "<http://legal>" | yes
**data.partitionHost** | Partition host | string | "<http://partition>" | yes
**data.scopes** | scope of OPA | string | `https://www.googleapis.com/auth/devstorage.read_only` | yes
**data.entitlementsHost** | Entitlements host | string | `http://entitlements` | yes
**data.entitlementsBasePath** | Entitlements path | string | `/api/entitlements/v2/groups` | yes
**data.useBundles** | use bundle or not | string | `yes` | yes
**data.legalHost** | Legal host | string | `http://legal` | yes
**data.partitionHost** | Partition host | string | `http://partition` | yes
### Baremetal variables
| Name | Description | Type | Default |Required |
|------|-------------|------|---------|---------|
**data.minioHost** | minio host | string | <http://minio:9000> | yes
**conf.minioSecretName** | secret name for the app | string | "policy-minio-secret" | yes
**data.minioHost** | minio host | string | `http://minio:9000` | yes
**conf.minioSecretName** | secret name for the app | string | `policy-minio-secret` | yes
### Config variables
| Name | Description | Type | Default |Required |
|------|-------------|------|---------|---------|
**conf.appName** | name of the app | string | policy | yes
**conf.configmap** | configmap to be used | string | policy-config | yes
**conf.bootstrapSecretName** | secret name for the bootstrap | string | "minio-bootstrap-secret" | yes
**conf.minDelaySeconds** | min delay for bundle download | num | 6 | yes
**conf.maxDelaySeconds** | max delay for bundle download | num | 12 | yes
**conf.appName** | name of the app | string | `policy` | yes
**conf.configmap** | configmap to be used | string | `policy-config` | yes
**conf.bootstrapSecretName** | secret name for the bootstrap | string | `minio-bootstrap-secret` | yes
**conf.minDelaySeconds** | min delay for bundle download | num | `6` | yes
**conf.maxDelaySeconds** | max delay for bundle download | num | `12` | yes
### Bootstrap variables
......@@ -84,22 +85,22 @@ First you need to set variables in **values.yaml** file using any code editor. S
| Name | Description | Type | Default |Required |
|------|-------------|------|---------|---------|
**opa.conf.configmap** | configmap to be used | string | opa-config | yes
**opa.conf.envConfig** | configmap with env vars | string | opa-env-config | yes
**opa.conf.appName** | name of the app | string | opa | yes
**opa.data.serviceAccountName** | name of your service account | string | opa-k8s | yes
**opa.conf.configmap** | configmap to be used | string | `opa-config` | yes
**opa.conf.envConfig** | configmap with env vars | string | `opa-env-config` | yes
**opa.conf.appName** | name of the app | string | `opa` | yes
**opa.data.serviceAccountName** | name of your service account | string | `opa-k8s` | yes
**opa.data.image** | image name | string | - | 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 | 500m | yes
**istio.proxyMemory** | memory request for Envoy sidecars | string | 100Mi | yes
**istio.proxyMemoryLimit** | memory limit for Envoy sidecars | string | 512Mi | yes
**istio.bootstrapProxyCPU** | CPU request for Envoy sidecars | string | 10m | yes
**istio.bootstrapProxyCPULimit** | CPU limit for Envoy sidecars | string | 100m | yes
**istio.proxyCPU** | CPU request for Envoy sidecars | string | `10m` | yes
**istio.proxyCPULimit** | CPU limit for Envoy sidecars | string | `500m` | yes
**istio.proxyMemory** | memory request for Envoy sidecars | string | `100Mi` | yes
**istio.proxyMemoryLimit** | memory limit for Envoy sidecars | string | `512Mi` | yes
**istio.bootstrapProxyCPU** | CPU request for Envoy sidecars | string | `10m` | yes
**istio.bootstrapProxyCPULimit** | CPU limit for Envoy sidecars | string | `100m` | yes
### Install the helm chart
......
......@@ -6,7 +6,7 @@ metadata:
name: "{{ .Values.conf.configmap }}"
namespace: "{{ .Release.Namespace }}"
data:
LOG_LEVEL: "{{ .Values.data.logLevel }}"
LOG_LEVEL: {{ .Values.data.logLevel | default .Values.global.logLevel | quote }}
OPA_URL: {{ printf "http://%s" .Values.opa.conf.appName | quote }}
ENTITLEMENTS_BASE_URL: "{{ .Values.data.entitlementsHost }}"
ENTITLEMENTS_BASE_PATH: "{{ .Values.data.entitlementsBasePath }}"
......
......@@ -4,6 +4,7 @@ global:
onPremEnabled: false
limitsEnabled: true
dataPartitionId: ""
logLevel: "ERROR"
data:
# Deployment resources
......@@ -17,7 +18,7 @@ data:
bootstrapImage: ''
bootstrapServiceAccountName: ''
# ConfigMap resources
logLevel: ERROR
logLevel: ""
entitlementsHost: http://entitlements
entitlementsBasePath: /api/entitlements/v2/groups
legalHost: http://legal
......
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