Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to elastic 8.5.0 and keep using http #37

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
13 changes: 13 additions & 0 deletions templates/storage/elasticsearch/configMap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "finala.fullname" . }}-elasticsearch-config
labels:
chart: "{{ .Chart.Name }}"
app: "{{ include "finala.fullname" . }}-elasticsearch"
data:
{{- range $path, $config := .Values.storage.esConfig }}
{{ $path }}: |
{{ $config | indent 4 -}}
{{- end -}}
14 changes: 12 additions & 2 deletions templates/storage/elasticsearch/elasticsearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@ spec:
labels:
component: {{ include "finala.fullname" . }}-elasticsearch
spec:
volumes:
- name: esconfig
configMap:
name: {{ include "finala.fullname" . }}-elasticsearch-config
containers:
- name: {{ include "finala.fullname" . }}-elasticsearch
image: docker.elastic.co/elasticsearch/elasticsearch:7.7.0
image: docker.elastic.co/elasticsearch/elasticsearch:8.5.0
env:
- name: discovery.type
value: single-node
Expand All @@ -29,4 +33,10 @@ spec:
requests:
cpu: 500m
memory: 1Gi
{{- end }}
volumeMounts:
{{- range $path, $config := .Values.storage.esConfig }}
- name: esconfig
mountPath: /usr/share/elasticsearch/config/{{ $path }}
subPath: {{ $path }}
{{- end -}}
{{- end }}
7 changes: 7 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ fullnameOverride: ""

storage:
type: internal
# Elasticsearch application configurations for http access. Remove for https and add other configurations. Example: https://github.com/elastic/helm-charts/blob/7.17/elasticsearch/examples/security/values.yaml
esConfig:
elasticsearch.yml: |
network.host: 0.0.0.0
xpack.security.enabled: false
xpack.security.http.ssl.enabled: false
xpack.security.transport.ssl.enabled: false

api:
create: true
Expand Down