Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
Storage
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
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
System
Storage
Commits
f1264119
Commit
f1264119
authored
1 year ago
by
Andrei Skorkin [EPAM / GCP]
Committed by
Mikhail Piatliou (EPAM)
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Add global limitsEnabled variable (GONRG-7266)
parent
a919de38
No related branches found
No related tags found
2 merge requests
!744
Upgraded packages to mitigated vulns in netty, guava, snakeyaml
,
!714
Add global limitsEnabled variable (GONRG-7266)
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
devops/gc/deploy/README.md
+3
-2
3 additions, 2 deletions
devops/gc/deploy/README.md
devops/gc/deploy/templates/deployment.yaml
+2
-0
2 additions, 0 deletions
devops/gc/deploy/templates/deployment.yaml
devops/gc/deploy/values.yaml
+1
-0
1 addition, 0 deletions
devops/gc/deploy/values.yaml
with
6 additions
and
2 deletions
devops/gc/deploy/README.md
+
3
−
2
View file @
f1264119
...
...
@@ -33,6 +33,7 @@ First you need to set variables in **values.yaml** file using any code editor. S
**global.domain**
| your domain for the external endpoint, ex
`example.com`
| string | - | yes
**global.onPremEnabled**
| whether on-prem is enabled | boolean | false | yes
**global.dataBootstrapEnabled**
| whether storage bootstrap is enabled | boolean | false | yes
**global.limitsEnabled**
| whether CPU and memory limits are enabled | boolean | true | yes
### Configmap variables
...
...
@@ -60,8 +61,8 @@ First you need to set variables in **values.yaml** file using any code editor. S
|------|-------------|------|---------|---------|
**data.requestsCpu**
| amount of requested CPU | string |
`10m`
| yes
**data.requestsMemory**
| amount of requested memory| string |
`650Mi`
| yes
**data.limitsCpu**
| CPU limit | string |
`1`
|
yes
**data.limitsMemory**
| memory limit | string |
`3G`
|
yes
**data.limitsCpu**
| CPU limit | string |
`1`
|
only if
`global.limitsEnabled`
is true
**data.limitsMemory**
| memory limit | string |
`3G`
|
only if
`global.limitsEnabled`
is true
**data.image**
| path to the image in a registry | string | - | yes
**data.imagePullPolicy**
| when to pull the image | string |
`IfNotPresent`
| yes
**data.serviceAccountName**
| name of kubernetes service account | string |
`storage`
| yes
...
...
This diff is collapsed.
Click to expand it.
devops/gc/deploy/templates/deployment.yaml
+
2
−
0
View file @
f1264119
...
...
@@ -58,7 +58,9 @@ spec:
requests
:
cpu
:
{{
.Values.data.requestsCpu | quote
}}
memory
:
{{
.Values.data.requestsMemory | quote
}}
{{
- if .Values.global.limitsEnabled
}}
limits
:
cpu
:
{{
.Values.data.limitsCpu | quote
}}
memory
:
{{
.Values.data.limitsMemory | quote
}}
{{
- end
}}
serviceAccountName
:
{{
.Values.data.serviceAccountName | quote
}}
This diff is collapsed.
Click to expand it.
devops/gc/deploy/values.yaml
+
1
−
0
View file @
f1264119
...
...
@@ -6,6 +6,7 @@ global:
domain
:
"
"
onPremEnabled
:
false
dataBootstrapEnabled
:
false
limitsEnabled
:
true
data
:
# configmaps
...
...
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