Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
Notification
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
System
Notification
Commits
e3931616
Commit
e3931616
authored
1 year ago
by
Andrei Skorkin [EPAM / GCP]
Browse files
Options
Downloads
Patches
Plain Diff
add global variable limitsEnabled
parent
2a6be3ab
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!403
Add global variable limitsEnabled (GONRG-7266)
Pipeline
#194199
failed
1 year ago
Stage: review
Changes
3
Pipelines
2
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 @
e3931616
...
...
@@ -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.limitsEnabled**
| whether CPU and memory limits are enabled | boolean | true | yes
### Configmap variables
...
...
@@ -52,8 +53,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 |
`512Mi`
| yes
**data.limitsCpu**
| CPU limit | string |
`1`
|
yes
**data.limitsMemory**
| memory limit | string |
`1.5G`
|
yes
**data.limitsCpu**
| CPU limit | string |
`1`
|
only if
`global.limitsEnabled`
is true
**data.limitsMemory**
| memory limit | string |
`1.5G`
|
only if
`global.limitsEnabled`
is true
**data.serviceAccountName**
| name of your service account | string |
`notification`
| yes
**data.imagePullPolicy**
| when to pull image | string |
`IfNotPresent`
| yes
**data.image**
| service image | string | - | yes
...
...
This diff is collapsed.
Click to expand it.
devops/gc/deploy/templates/deployment.yaml
+
2
−
0
View file @
e3931616
...
...
@@ -45,7 +45,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 @
e3931616
global
:
domain
:
"
"
onPremEnabled
:
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