Commit cfab04cb authored by Bryan  BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

migrate celery deployment to a StatefulSet so it can have multiple replicat

parent c6868f93
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
kind: Deployment
kind: StatefulSet
metadata:
name: {{ printf "%s-%s" .Release.Name "celery" }}
labels:
......@@ -10,8 +26,12 @@ spec:
matchLabels:
{{- include "chart.selectorLabels" . | nindent 6 }}
app: celery-worker
strategy:
type: Recreate
serviceName: {{ printf "%s-%s" .Release.Name "celery-worker-svc" }}
{{- if .Values.celery.replicas }}
replicas: {{ .Values.celery.replicas }}
{{- end }}
updateStrategy:
type: RollingUpdate
template:
metadata:
{{- with .Values.podAnnotations }}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment