Skip to content

Commit a0350f1

Browse files
nflaigjmlrt
authored andcommitted
[elasticsearch] remove masterTerminationFix (elastic#1183)
* [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.
1 parent b870c3f commit a0350f1

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

elasticsearch/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ support multiple versions with minimal changes.
160160
| `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 | `[]` |
161161
| `securityContext` | Allows you to set the [securityContext][] for the container | see [values.yaml][] |
162162
| `service.annotations` | [LoadBalancer annotations][] that Kubernetes will use for the service. This will configure load balancer if `service.type` is `LoadBalancer` | `{}` |
163+
| `service.enabled` | Enable non-headless service | `true` |
163164
| `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` | `""` |
164165
| `service.httpPortName` | The name of the http port within the service | `http` |
165166
| `service.labelsHeadless` | Labels to be added to headless service | `{}` |

elasticsearch/templates/service.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
{{- if .Values.service.enabled -}}
23
kind: Service
34
apiVersion: v1
45
metadata:
@@ -43,6 +44,7 @@ spec:
4344
{{- if .Values.service.externalTrafficPolicy }}
4445
externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy }}
4546
{{- end }}
47+
{{- end }}
4648
---
4749
kind: Service
4850
apiVersion: v1

elasticsearch/values.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ httpPort: 9200
180180
transportPort: 9300
181181

182182
service:
183+
enabled: true
183184
labels: {}
184185
labelsHeadless: {}
185186
type: ClusterIP

0 commit comments

Comments
 (0)