Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# Changelog

## In Development


## v0.7.0
* Add new Helm `st2.keyvalue` to import data into st2 K/V storage (#30)
* Include new st2 component `st2scheduler`, introduced since st2 `v3.0` (#32)

## v0.6.0
* Add StackStorm FOSS (community version), make Enterprise install optional (#22)
Expand Down
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
# Update StackStorm version here to rely on other Docker images tags
appVersion: 3.0dev
name: stackstorm-ha
version: 0.6.0
version: 0.7.0
description: StackStorm K8s Helm Chart, optimized for running StackStorm in HA environment.
home: https://stackstorm.com/#product
icon: https://avatars1.githubusercontent.com/u/4969009
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ All the workflow engine processes will share the load and pick up more work if o
> As Mistral is going to be deprecated and removed from StackStorm platform soon, Helm chart relies only on
> [Orquesta st2workflowengine](https://docs.stackstorm.com/orchestra/index.html) as a new native workflow engine.

### [st2scheduler](https://docs.stackstorm.com/reference/ha.html#st2scheduler)
TODO: Description TBD

### [st2notifier](https://docs.stackstorm.com/reference/ha.html#st2notifier)
Multiple st2notifier processes can run in active-active mode, using connections to RabbitMQ and MongoDB and generating triggers based on
action execution completion as well as doing action rescheduling.
Expand Down
74 changes: 74 additions & 0 deletions templates/deployments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,80 @@ spec:
{{ toYaml . | indent 8 }}
{{- end }}

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name }}-st2scheduler{{ template "enterpriseSuffix" . }}
labels:
app: st2scheduler
tier: backend
vendor: stackstorm
support: {{ template "supportMethod" . }}
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
selector:
matchLabels:
app: st2scheduler
support: {{ template "supportMethod" . }}
release: {{ .Release.Name }}
# https://docs.stackstorm.com/reference/ha.html#st2scheduler
replicas: {{ default 2 .Values.st2scheduler.replicas }}
template:
metadata:
labels:
app: st2scheduler
tier: backend
vendor: stackstorm
support: {{ template "supportMethod" . }}
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/configmaps_st2-conf.yaml") . | sha256sum }}
spec:
{{- if .Values.enterprise.enabled }}
imagePullSecrets:
- name: {{ .Release.Name }}-st2-license
{{- end }}
containers:
- name: st2scheduler{{ template "enterpriseSuffix" . }}
image: "{{ template "imageRepository" . }}/st2scheduler{{ template "enterpriseSuffix" . }}:{{ .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
# TODO: Add liveness/readiness probes (#3)
#livenessProbe:
#readinessProbe:
envFrom:
- configMapRef:
name: {{ .Release.Name }}-st2-urls
volumeMounts:
- name: st2-config-vol
mountPath: /etc/st2/st2.docker.conf
subPath: st2.docker.conf
- name: st2-config-vol
mountPath: /etc/st2/st2.user.conf
subPath: st2.user.conf
resources:
{{ toYaml .Values.st2scheduler.resources | indent 10 }}
volumes:
- name: st2-config-vol
configMap:
name: {{ .Release.Name }}-st2-config
{{- with .Values.st2scheduler.nodeSelector }}
nodeSelector:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.st2scheduler.affinity }}
affinity:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.st2scheduler.tolerations }}
tolerations:
{{ toYaml . | indent 8 }}
{{- end }}

---
apiVersion: apps/v1
kind: Deployment
Expand Down
10 changes: 10 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,16 @@ st2workflowengine:
nodeSelector: {}
tolerations: []
affinity: {}
# https://docs.stackstorm.com/reference/ha.html#st2scheduler
# TODO: Description TBD
st2scheduler:
replicas: 2
# TODO: Find out recommended/default resources for this specific service (#5)
resources: {}
# Additional advanced settings to control pod/deployment placement
nodeSelector: {}
tolerations: []
affinity: {}
# https://docs.stackstorm.com/reference/ha.html#st2notifier
# st2notifier runs in active-active mode and requires for that coordination backend like Redis or Zookeeper
st2notifier:
Expand Down