Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
user-manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
OZG-Cloud
app
user-manager
Commits
40d20856
Commit
40d20856
authored
2 years ago
by
OZGCloud
Browse files
Options
Downloads
Patches
Plain Diff
OZG-3279 OZG-3299 resource limits gesetzt
parent
1bb14aaf
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+5
-5
5 additions, 5 deletions
README.md
src/main/helm/templates/_helpers.tpl
+4
-4
4 additions, 4 deletions
src/main/helm/templates/_helpers.tpl
src/test/helm/deployment_resources_test.yaml
+4
-4
4 additions, 4 deletions
src/test/helm/deployment_resources_test.yaml
with
13 additions
and
13 deletions
README.md
+
5
−
5
View file @
40d20856
...
...
@@ -176,10 +176,10 @@ Prod:
```
yaml
limits
:
cpu
:
"
500m"
memory
:
"
25
6Mi"
memory
:
"
19
6Mi"
requests
:
cpu
:
"
50m"
memory
:
"
25
6Mi"
memory
:
"
19
6Mi"
```
Dev:
...
...
@@ -187,10 +187,10 @@ Dev:
```
yaml
limits
:
cpu
:
"
500m"
memory
:
"
1
28
Mi"
memory
:
"
1
00
Mi"
requests
:
cpu
:
"
50m"
memory
:
"
1
28
Mi"
memory
:
"
1
00
Mi"
```
### Weitere Urls
...
...
This diff is collapsed.
Click to expand it.
src/main/helm/templates/_helpers.tpl
+
4
−
4
View file @
40d20856
...
...
@@ -64,17 +64,17 @@ app.kubernetes.io/namespace: {{ include "app.namespace" . }}
{{- if eq (include "app.kopEnvironment" . ) "prod" }}
limits:
cpu: "500m"
memory: "
2000
Mi"
memory: "
192
Mi"
requests:
cpu: "50m"
memory: "
250
Mi"
memory: "
192
Mi"
{{- else }}
limits:
cpu: "500m"
memory: "
20
00Mi"
memory: "
1
00Mi"
requests:
cpu: "50m"
memory: "
25
0Mi"
memory: "
10
0Mi"
{{- end }}
{{- end -}}
...
...
This diff is collapsed.
Click to expand it.
src/test/helm/deployment_resources_test.yaml
+
4
−
4
View file @
40d20856
...
...
@@ -41,13 +41,13 @@ tests:
value
:
500m
-
equal
:
path
:
spec.template.spec.containers[0].resources.limits.memory
value
:
2000
Mi
value
:
192
Mi
-
equal
:
path
:
spec.template.spec.containers[0].resources.requests.cpu
value
:
50m
-
equal
:
path
:
spec.template.spec.containers[0].resources.requests.memory
value
:
250
Mi
value
:
192
Mi
-
it
:
test default resources
template
:
deployment.yaml
release
:
...
...
@@ -58,10 +58,10 @@ tests:
value
:
500m
-
equal
:
path
:
spec.template.spec.containers[0].resources.limits.memory
value
:
20
00Mi
value
:
1
00Mi
-
equal
:
path
:
spec.template.spec.containers[0].resources.requests.cpu
value
:
50m
-
equal
:
path
:
spec.template.spec.containers[0].resources.requests.memory
value
:
250Mi
\ No newline at end of file
value
:
100Mi
\ No newline at end of file
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