feat(helm): scheduler deployment (single replica, schedule:work)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
38
helm/ezscale-website/templates/deployment-scheduler.yaml
Normal file
38
helm/ezscale-website/templates/deployment-scheduler.yaml
Normal file
@@ -0,0 +1,38 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ include "ezscale-website.fullname" . }}-scheduler
|
||||
labels:
|
||||
{{- include "ezscale-website.labels" . | nindent 4 }}
|
||||
app.kubernetes.io/component: scheduler
|
||||
spec:
|
||||
# Single replica only — running two schedule:work instances doubles tasks.
|
||||
replicas: 1
|
||||
strategy:
|
||||
type: Recreate
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "ezscale-website.selectorLabels" . | nindent 6 }}
|
||||
app.kubernetes.io/component: scheduler
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
{{- include "ezscale-website.selectorLabels" . | nindent 8 }}
|
||||
app.kubernetes.io/component: scheduler
|
||||
annotations:
|
||||
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
|
||||
spec:
|
||||
{{- with .Values.imagePullSecrets }}
|
||||
imagePullSecrets:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: scheduler
|
||||
image: {{ include "ezscale-website.image" (dict "ctx" . "role" "scheduler") }}
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: {{ include "ezscale-website.fullname" . }}-env
|
||||
- secretRef:
|
||||
name: {{ include "ezscale-website.secretName" . }}
|
||||
resources:
|
||||
{{- toYaml .Values.scheduler.resources | nindent 12 }}
|
||||
Reference in New Issue
Block a user