Skip to content
This repository has been archived by the owner on Aug 25, 2021. It is now read-only.

Remove preStop hook that calls consul leave from Consul servers #764

Merged
merged 5 commits into from
Jan 22, 2021
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
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