Skip to content

Commit

Permalink
[elasticsearch] remove masterTerminationFix (elastic#1183)
Browse files Browse the repository at this point in the history
* [elasticsearch] fix values table formatting

* [elasticsearch] remove masterTerminationFix

This commit removes the `masterTerminationFix` side-car container
introduced in elastic#63 to fix slow elections issues when master node is
deleted. This workaround is no more needed since Elasticsearch 7.2.
  • Loading branch information
nflaig authored and jmlrt committed Jul 6, 2021
1 parent b870c3f commit a0350f1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions elasticsearch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ support multiple versions with minimal changes.
| `secretMounts` | Allows you easily mount a secret as a file inside the StatefulSet. Useful for mounting certificates and other secrets. See [values.yaml][] for an example | `[]` |
| `securityContext` | Allows you to set the [securityContext][] for the container | see [values.yaml][] |
| `service.annotations` | [LoadBalancer annotations][] that Kubernetes will use for the service. This will configure load balancer if `service.type` is `LoadBalancer` | `{}` |
| `service.enabled` | Enable non-headless service | `true` |
| `service.externalTrafficPolicy` | Some cloud providers allow you to specify the [LoadBalancer externalTrafficPolicy][]. Kubernetes will use this to preserve the client source IP. This will configure load balancer if `service.type` is `LoadBalancer` | `""` |
| `service.httpPortName` | The name of the http port within the service | `http` |
| `service.labelsHeadless` | Labels to be added to headless service | `{}` |
Expand Down
2 changes: 2 additions & 0 deletions elasticsearch/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
{{- if .Values.service.enabled -}}
kind: Service
apiVersion: v1
metadata:
Expand Down Expand Up @@ -43,6 +44,7 @@ spec:
{{- if .Values.service.externalTrafficPolicy }}
externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy }}
{{- end }}
{{- end }}
---
kind: Service
apiVersion: v1
Expand Down
1 change: 1 addition & 0 deletions elasticsearch/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ httpPort: 9200
transportPort: 9300

service:
enabled: true
labels: {}
labelsHeadless: {}
type: ClusterIP
Expand Down

0 comments on commit a0350f1

Please sign in to comment.