Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
2cb15d11
Commit
2cb15d11
authored
Aug 24, 2021
by
Dominik Hebeler
Browse files
added startup probes
parent
08caa4b6
Changes
4
Hide whitespace changes
Inline
Side-by-side
.gitlab/development-values.yaml
View file @
2cb15d11
...
...
@@ -7,6 +7,10 @@ hpa:
enabled
:
true
minReplicas
:
1
maxReplicas
:
5
livenessProbe
:
initialDelaySeconds
:
0
readinessProbe
:
initialDelaySeconds
:
0
resourcesPhpfpm
:
requests
:
cpu
:
500m
...
...
.gitlab/production-values.yaml
View file @
2cb15d11
...
...
@@ -16,6 +16,10 @@ podAnnotations:
prometheus.io/path
:
/metrics
prometheus.io/port
:
"
80"
deploymentApiVersion
:
apps/v1
livenessProbe
:
initialDelaySeconds
:
0
readinessProbe
:
initialDelaySeconds
:
0
resources
:
requests
:
limits
:
...
...
.gitlab/review-apps-values.yaml
View file @
2cb15d11
...
...
@@ -2,6 +2,10 @@ postgresql:
enabled
:
false
hpa
:
enabled
:
false
livenessProbe
:
initialDelaySeconds
:
0
readinessProbe
:
initialDelaySeconds
:
0
resources
:
requests
:
limits
:
...
...
chart/templates/deployment.yaml
View file @
2cb15d11
...
...
@@ -117,6 +117,11 @@ spec:
port
:
"
{{
.Values.service.name
}}-phpfpm"
initialDelaySeconds
:
{{
.Values.readinessProbe.initialDelaySeconds
}}
timeoutSeconds
:
{{
.Values.readinessProbe.timeoutSeconds
}}
startupProbe
:
tcpSocket
:
port
:
"
{{
.Values.service.name
}}-phpfpm"
failureThreshold
:
60
periodSeconds
:
1
volumeMounts
:
-
name
:
mglogs-persistent-storage
mountPath
:
/html/storage/logs/metager
...
...
@@ -223,6 +228,18 @@ spec:
{{
- end
}}
initialDelaySeconds
:
{{
.Values.readinessProbe.initialDelaySeconds
}}
timeoutSeconds
:
{{
.Values.readinessProbe.timeoutSeconds
}}
startupProbe
:
{{
- if eq .Values.readinessProbe.probeType "httpGet"
}}
httpGet
:
path
:
{{
.Values.readinessProbe.path
}}
scheme
:
{{
.Values.readinessProbe.scheme
}}
port
:
{{
.Values.service.internalPort
}}
{{
- else if eq .Values.readinessProbe.probeType "tcpSocket"
}}
tcpSocket
:
port
:
{{
.Values.service.internalPort
}}
{{
- end
}}
failureThreshold
:
60
periodSeconds
:
1
resources
:
{{
toYaml .Values.resourcesNginx | indent 12
}}
# Redis Container
...
...
@@ -241,12 +258,12 @@ spec:
livenessProbe
:
tcpSocket
:
port
:
"
{{
.Values.service.name
}}-redis"
initialDelaySeconds
:
{{
.Values.livenessProbe.initialDelaySeconds
}}
initialDelaySeconds
:
15
timeoutSeconds
:
{{
.Values.livenessProbe.timeoutSeconds
}}
readinessProbe
:
tcpSocket
:
port
:
"
{{
.Values.service.name
}}-redis"
initialDelaySeconds
:
{{
.Values.readinessProbe.initialDelaySeconds
}}
initialDelaySeconds
:
5
timeoutSeconds
:
{{
.Values.readinessProbe.timeoutSeconds
}}
resources
:
{{
toYaml .Values.resourcesRedis | indent 12
}}
...
...
@@ -279,6 +296,13 @@ spec:
port
:
8080
initialDelaySeconds
:
{{
.Values.readinessProbe.initialDelaySeconds
}}
timeoutSeconds
:
{{
.Values.readinessProbe.timeoutSeconds
}}
startupProbe
:
httpGet
:
path
:
"
/health-check/liveness-worker"
scheme
:
"
HTTP"
port
:
8080
failureThreshold
:
60
periodSeconds
:
1
resources
:
{{
toYaml .Values.resourcesFetcher | indent 12
}}
# Scheduler Container
...
...
@@ -306,6 +330,13 @@ spec:
port
:
8080
initialDelaySeconds
:
{{
.Values.readinessProbe.initialDelaySeconds
}}
timeoutSeconds
:
{{
.Values.readinessProbe.timeoutSeconds
}}
startupProbe
:
httpGet
:
path
:
"
/health-check/liveness-scheduler"
scheme
:
"
HTTP"
port
:
8080
failureThreshold
:
60
periodSeconds
:
1
resources
:
{{
toYaml .Values.resourcesScheduler | indent 12
}}
{{
- end -
}}
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment