Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MetaGer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open-source
MetaGer
Commits
cb979540
Commit
cb979540
authored
1 year ago
by
Dominik Hebeler
Browse files
Options
Downloads
Patches
Plain Diff
do not request that many resources for review apps
parent
791c16f4
No related branches found
Branches containing commit
No related tags found
1 merge request
!2180
Development
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab/production.yaml
+19
-1
19 additions, 1 deletion
.gitlab/production.yaml
chart/templates/deployment.yaml
+8
-13
8 additions, 13 deletions
chart/templates/deployment.yaml
chart/values.yaml
+7
-12
7 additions, 12 deletions
chart/values.yaml
with
34 additions
and
26 deletions
.gitlab/production.yaml
+
19
−
1
View file @
cb979540
...
...
@@ -57,8 +57,26 @@ ingress:
secretName
:
metager-tls-otherdomains
autoscaling
:
m
ax
Replicas
:
5
m
in
Replicas
:
2
podAnnotations
:
prometheus.io/scrape
:
"
true"
prometheus.io/port
:
"
8080"
resources
:
requests
:
fpm
:
cpu
:
1
memory
:
500M
scheduler
:
cpu
:
100m
memory
:
100M
worker
:
cpu
:
1
memory
:
100M
nginx
:
cpu
:
100m
memory
:
100M
redis
:
cpu
:
100m
memory
:
1Gi
This diff is collapsed.
Click to expand it.
chart/templates/deployment.yaml
+
8
−
13
View file @
cb979540
...
...
@@ -101,9 +101,8 @@ spec:
periodSeconds
:
1
resources
:
requests
:
cpu
:
1
memory
:
500M
limits
:
{{
- toYaml .Values.resources.requests.fpm | nindent 14
}}
limits
:
{}
-
name
:
scheduler
securityContext
:
{{
- toYaml .Values.securityContext | nindent 12
}}
...
...
@@ -146,9 +145,8 @@ spec:
port
:
http
resources
:
requests
:
cpu
:
100m
memory
:
100M
limits
:
{{
- toYaml .Values.resources.requests.scheduler | nindent 14
}}
limits
:
{}
-
name
:
worker
securityContext
:
{{
- toYaml .Values.securityContext | nindent 12
}}
...
...
@@ -182,8 +180,7 @@ spec:
port
:
http
resources
:
requests
:
cpu
:
1
memory
:
100M
{{
- toYaml .Values.resources.requests.worker | nindent 14
}}
limits
:
-
name
:
nginx
securityContext
:
...
...
@@ -210,9 +207,8 @@ spec:
periodSeconds
:
1
resources
:
requests
:
cpu
:
100m
memory
:
100M
limits
:
{{
- toYaml .Values.resources.requests.nginx | nindent 14
}}
limits
:
{}
-
name
:
redis
image
:
"
{{
template
"redis_image" . }}"
imagePullPolicy
:
{{
.Values.image.pullPolicy
}}
...
...
@@ -236,8 +232,7 @@ spec:
initialDelaySeconds
:
2
resources
:
requests
:
cpu
:
100m
memory
:
1Gi
{{
- toYaml .Values.resources.requests.redis | nindent 14
}}
limits
:
securityContext
:
runAsUser
:
999
...
...
This diff is collapsed.
Click to expand it.
chart/values.yaml
+
7
−
12
View file @
cb979540
...
...
@@ -106,21 +106,16 @@ ingress:
# - chart-example.local
resources
:
{}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
requests
:
fpm
:
{}
scheduler
:
{}
worker
:
{}
nginx
:
{}
redis
:
{}
autoscaling
:
enabled
:
true
minReplicas
:
2
minReplicas
:
1
maxReplicas
:
5
targetCPUUtilizationPercentage
:
85
#targetMemoryUtilizationPercentage: 80
...
...
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