Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
Policy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSDU
OSDU Data Platform
Security and Compliance
Policy
Commits
2f45e463
Commit
2f45e463
authored
6 months ago
by
Vadzim Beuzo [EPAM / GCP]
Committed by
Aliaksandr Ramanovich (EPAM)
6 months ago
Browse files
Options
Downloads
Patches
Plain Diff
GONRG-10103: add global log level to services
parent
952b9673
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!525
Cherry-pick 'Ibm buildversion fix' into 'release/0.27'
,
!517
GONRG-10103: add global log level to services
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
devops/gc/deploy/README.md
+33
-32
33 additions, 32 deletions
devops/gc/deploy/README.md
devops/gc/deploy/templates/policy-configmap.yaml
+1
-1
1 addition, 1 deletion
devops/gc/deploy/templates/policy-configmap.yaml
devops/gc/deploy/values.yaml
+2
-1
2 additions, 1 deletion
devops/gc/deploy/values.yaml
with
36 additions
and
34 deletions
devops/gc/deploy/README.md
+
33
−
32
View file @
2f45e463
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
devops/gc/deploy/templates/policy-configmap.yaml
+
1
−
1
View file @
2f45e463
...
...
@@ -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
}}"
...
...
This diff is collapsed.
Click to expand it.
devops/gc/deploy/values.yaml
+
2
−
1
View file @
2f45e463
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment