@@ -629,6 +629,80 @@ spec:
629629{{ toYaml . | indent 8 }}
630630 {{- end }}
631631
632+ ---
633+ apiVersion : apps/v1
634+ kind : Deployment
635+ metadata :
636+ name : {{ .Release.Name }}-st2scheduler{{ template "enterpriseSuffix" . }}
637+ labels :
638+ app : st2scheduler
639+ tier : backend
640+ vendor : stackstorm
641+ support : {{ template "supportMethod" . }}
642+ chart : {{ .Chart.Name }}-{{ .Chart.Version }}
643+ release : {{ .Release.Name }}
644+ heritage : {{ .Release.Service }}
645+ spec :
646+ selector :
647+ matchLabels :
648+ app : st2scheduler
649+ support : {{ template "supportMethod" . }}
650+ release : {{ .Release.Name }}
651+ # https://docs.stackstorm.com/reference/ha.html#st2scheduler
652+ replicas : {{ default 2 .Values.st2scheduler.replicas }}
653+ template :
654+ metadata :
655+ labels :
656+ app : st2scheduler
657+ tier : backend
658+ vendor : stackstorm
659+ support : {{ template "supportMethod" . }}
660+ chart : {{ .Chart.Name }}-{{ .Chart.Version }}
661+ release : {{ .Release.Name }}
662+ heritage : {{ .Release.Service }}
663+ annotations :
664+ checksum/config : {{ include (print $.Template.BasePath "/configmaps_st2-conf.yaml") . | sha256sum }}
665+ spec :
666+ {{- if .Values.enterprise.enabled }}
667+ imagePullSecrets :
668+ - name : {{ .Release.Name }}-st2-license
669+ {{- end }}
670+ containers :
671+ - name : st2scheduler{{ template "enterpriseSuffix" . }}
672+ image : " {{ template " imageRepository" . }}/st2scheduler{{ template "enterpriseSuffix" . }}:{{ .Chart.AppVersion }}"
673+ imagePullPolicy : {{ .Values.image.pullPolicy }}
674+ # TODO: Add liveness/readiness probes (#3)
675+ # livenessProbe:
676+ # readinessProbe:
677+ envFrom :
678+ - configMapRef :
679+ name : {{ .Release.Name }}-st2-urls
680+ volumeMounts :
681+ - name : st2-config-vol
682+ mountPath : /etc/st2/st2.docker.conf
683+ subPath : st2.docker.conf
684+ - name : st2-config-vol
685+ mountPath : /etc/st2/st2.user.conf
686+ subPath : st2.user.conf
687+ resources :
688+ {{ toYaml .Values.st2scheduler.resources | indent 10 }}
689+ volumes :
690+ - name : st2-config-vol
691+ configMap :
692+ name : {{ .Release.Name }}-st2-config
693+ {{- with .Values.st2scheduler.nodeSelector }}
694+ nodeSelector :
695+ {{ toYaml . | indent 8 }}
696+ {{- end }}
697+ {{- with .Values.st2scheduler.affinity }}
698+ affinity :
699+ {{ toYaml . | indent 8 }}
700+ {{- end }}
701+ {{- with .Values.st2scheduler.tolerations }}
702+ tolerations :
703+ {{ toYaml . | indent 8 }}
704+ {{- end }}
705+
632706---
633707apiVersion : apps/v1
634708kind : Deployment
0 commit comments