Skip to content

Commit d0cfc69

Browse files
authored
Merge pull request #81 from trstruth/trstruth/etcd-operator
Use stable etcd operator as opposed to etcd from incubator
2 parents 93fe06e + 46ce012 commit d0cfc69

File tree

7 files changed

+20
-11
lines changed

7 files changed

+20
-11
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ jobs:
8686
helm dependency update
8787
- run:
8888
name: Helm install stackstorm-ha chart (Community)
89-
command: helm install --debug --wait --name stackstorm-ha .
89+
command: helm install --timeout 500 --debug --wait --name stackstorm-ha .
9090
- run:
9191
name: Helm test (Community)
9292
command: helm test stackstorm-ha --parallel --cleanup

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
## In Development
44

5+
## v0.21.0
6+
* Change etcd dependency from incubator/etcd to stable/etcd-operator (#81)
7+
58
## v0.20.0
69
* Add option to disable MongoDB and RabbitMQ in-cluster deployment and configuration (#79)
710
* Compose multi-node connection string for MongoDB cluster instead of using loadbalancer single host (#80)

Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v1
22
# Update StackStorm version here to rely on other Docker images tags
33
appVersion: 3.2dev
44
name: stackstorm-ha
5-
version: 0.20.0
5+
version: 0.21.0
66
description: StackStorm K8s Helm Chart, optimized for running StackStorm in HA environment.
77
home: https://stackstorm.com/#product
88
icon: https://avatars1.githubusercontent.com/u/4969009

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ The deployment of RabbitMQ to the k8s cluster can be disabled by setting the rab
188188

189189
### [etcd](https://docs.stackstorm.com/latest/reference/ha.html#zookeeper-redis)
190190
StackStorm employs etcd as a distributed coordination backend, required for st2 cluster components to work properly in HA scenario.
191-
`3` node Raft cluster is deployed via external official Helm chart dependency [etcd](https://github.com/helm/charts/tree/master/incubator/etcd).
191+
`3` node Raft cluster is deployed via external official Helm chart dependency [etcd-operator](https://github.com/helm/charts/tree/master/stable/etcd-operator).
192192
As any other Helm dependency, it's possible to further configure it for specific scaling needs via `values.yaml`.
193193

194194
### Docker registry

requirements.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ dependencies:
2020
version: 1.6.1
2121
repository: https://kubernetes-charts.storage.googleapis.com/
2222
condition: external-dns.enabled
23-
- name: etcd
24-
version: 0.6.2
25-
repository: https://kubernetes-charts-incubator.storage.googleapis.com/
23+
- name: etcd-operator
24+
version: 0.10.0
25+
repository: https://kubernetes-charts.storage.googleapis.com/

templates/configmaps_st2-conf.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ data:
2121
[auth]
2222
api_url = http://{{ .Release.Name }}-st2api{{ template "enterpriseSuffix" . }}:9101/
2323
[coordination]
24-
url = etcd://{{ .Release.Name }}-etcd:2379
24+
url = etcd://{{ index .Values "etcd-operator" "etcdCluster" "name" }}-client:2379
2525
{{- if index .Values "rabbitmq-ha" "enabled" }}
2626
[messaging]
2727
url = amqp://{{ required "rabbitmq-ha.rabbitmqUsername is required!" (index .Values "rabbitmq-ha" "rabbitmqUsername") }}:{{ required "rabbitmq-ha.rabbitmqPassword is required!" (index .Values "rabbitmq-ha" "rabbitmqPassword") }}@{{ .Release.Name }}-rabbitmq-ha-discovery:5672

values.yaml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -401,10 +401,16 @@ rabbitmq-ha:
401401
## Etcd HA configuration (3rd party chart dependency)
402402
##
403403
## For values.yaml reference:
404-
## https://github.com/helm/charts/blob/master/incubator/etcd/values.yaml
405-
##
406-
etcd:
407-
resources: {}
404+
## https://github.com/helm/charts/tree/master/stable/etcd-operator
405+
##
406+
etcd-operator:
407+
# we don't need backup & restore etcd for short-lived coordination operations
408+
deployments:
409+
backupOperator: false
410+
restoreOperator: false
411+
customResources:
412+
# create default etcd cluster
413+
createEtcdClusterCRD: true
408414

409415
##
410416
## Docker registry configuration (3rd party chart dependency)

0 commit comments

Comments
 (0)