未验证 提交 e2cf8ef3 编写于 作者: 大浪滔滔's avatar 大浪滔滔 提交者: GitHub

fix https://github.com/apache/skywalking/issues/4512 (#41)

* fix https://github.com/apache/skywalking/issues/4512

* give tips in the values.yaml file.

* put es account config under the elasticsearch.config.xx

* determine whether these two keys exist

* add tips
上级 3bcc9830
......@@ -54,4 +54,16 @@ spec:
value: "{{ .Values.elasticsearch.clusterName }}-{{ .Values.elasticsearch.nodeGroup }}:{{ .Values.elasticsearch.httpPort }}"
{{- else }}
value: "{{ .Values.elasticsearch.config.host }}:{{ .Values.elasticsearch.config.port.http }}"
{{- end }}
\ No newline at end of file
{{- end }}
{{- if .Values.elasticsearch.config.user }}
- name: SW_ES_USER
value: "{{ .Values.elasticsearch.config.user }}"
{{- end }}
{{- if .Values.elasticsearch.config.password }}
- name: SW_ES_PASSWORD
value: "{{ .Values.elasticsearch.config.password }}"
{{- end }}
{{- range $key, $value := .Values.oap.env }}
- name: {{ $key }}
value: {{ $value | quote }}
{{- end }}
......@@ -126,6 +126,14 @@ spec:
{{- else }}
value: "{{ .Values.elasticsearch.config.host }}:{{ .Values.elasticsearch.config.port.http }}"
{{- end }}
{{- if .Values.elasticsearch.config.user }}
- name: SW_ES_USER
value: "{{ .Values.elasticsearch.config.user }}"
{{- end }}
{{- if .Values.elasticsearch.config.password }}
- name: SW_ES_PASSWORD
value: "{{ .Values.elasticsearch.config.password }}"
{{- end }}
{{- range $key, $value := .Values.oap.env }}
- name: {{ $key }}
value: {{ $value | quote }}
......
......@@ -104,6 +104,8 @@ elasticsearch:
# port:
# http: 9200
# host: elasticsearch # es service on kubernetes or host
# user: "xxx"
# password: "xxx"
clusterName: "elasticsearch"
nodeGroup: "master"
......
......@@ -104,6 +104,8 @@ elasticsearch:
# port:
# http: 9200
# host: elasticsearch # es service on kubernetes or host
# user: "xxx"
# password: "xxx"
clusterName: "elasticsearch"
nodeGroup: "master"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册