Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jass
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Statistical-Genetics
jass
Commits
cfab04cb
Commit
cfab04cb
authored
3 years ago
by
Bryan BRANCOTTE
Browse files
Options
Downloads
Patches
Plain Diff
migrate celery deployment to a StatefulSet so it can have multiple replicat
parent
c6868f93
No related branches found
No related tags found
1 merge request
!67
Draft: HPA for celery
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
chart/templates/celery-worker.yaml
+23
-3
23 additions, 3 deletions
chart/templates/celery-worker.yaml
with
23 additions
and
3 deletions
chart/templates/
deployment-
celery-worker.yaml
→
chart/templates/celery-worker.yaml
+
23
−
3
View file @
cfab04cb
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
{{
printf "%s-%s" .Release.Name "celery-worker-svc"
}}
labels
:
{{
- include "chart.labels" . | nindent 4
}}
app
:
celery-worker-svc
spec
:
ports
:
-
port
:
80
name
:
web
clusterIP
:
None
selector
:
{{
- include "chart.labels" . | nindent 4
}}
app
:
celery-worker
---
apiVersion
:
apps/v1
apiVersion
:
apps/v1
kind
:
Deploymen
t
kind
:
StatefulSe
t
metadata
:
metadata
:
name
:
{{
printf "%s-%s" .Release.Name "celery"
}}
name
:
{{
printf "%s-%s" .Release.Name "celery"
}}
labels
:
labels
:
...
@@ -10,8 +26,12 @@ spec:
...
@@ -10,8 +26,12 @@ spec:
matchLabels
:
matchLabels
:
{{
- include "chart.selectorLabels" . | nindent 6
}}
{{
- include "chart.selectorLabels" . | nindent 6
}}
app
:
celery-worker
app
:
celery-worker
strategy
:
serviceName
:
{{
printf "%s-%s" .Release.Name "celery-worker-svc"
}}
type
:
Recreate
{{
- if .Values.celery.replicas
}}
replicas
:
{{
.Values.celery.replicas
}}
{{
- end
}}
updateStrategy
:
type
:
RollingUpdate
template
:
template
:
metadata
:
metadata
:
{{
- with .Values.podAnnotations
}}
{{
- with .Values.podAnnotations
}}
...
...
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