Skip to content

Commit

Permalink
Remove preStop hook that calls consul leave from Consul servers (hash…
Browse files Browse the repository at this point in the history
  • Loading branch information
ishustava authored Jan 22, 2021
1 parent 5321326 commit c3bb97c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ IMPROVEMENTS:
* Use `consul-k8s` subcommand to perform `tls-init` job. This allows for server certificates to get rotated on subsequent runs.
Consul servers have to be restarted in order for them to update their server certificates [[GH-749](https://github.com/hashicorp/consul-helm/pull/721)]

BUG FIXES:
* Consul servers no longer call `consul leave` command when restarted or deleted.
This is because `consul leave` reduces the quorum size, but we want to maintain the quorum size.
For example, for a server with 3 replicas the quorum size should always be 2.
[[GH-764](https://github.com/hashicorp/consul-helm/pull/764)]

## 0.28.0 (Dec 21, 2020)

BREAKING CHANGES:
Expand Down
7 changes: 0 additions & 7 deletions templates/server-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -226,13 +226,6 @@ spec:
readOnly: true
mountPath: /consul/userconfig/{{ .name }}
{{- end }}
lifecycle:
preStop:
exec:
command:
- /bin/sh
- -c
- consul leave
ports:
{{- if (or (not .Values.global.tls.enabled) (not .Values.global.tls.httpsOnly)) }}
- containerPort: 8500
Expand Down

0 comments on commit c3bb97c

Please sign in to comment.