elasticsearch-curator k8s Helm chart 无法连接到 HTTPS
elasticsearch-curator k8s Helm chart cannot connect to HTTPS
我正在使用以下 Helm 图表:https://github.com/kubernetes/charts/tree/master/incubator/elasticsearch-curator 并在我的 values.yaml 文件中传递以下内容:
config:
elasticsearch:
hosts:
- my-es-aws-endpoint
port: 443
ssl: True
在 pods 日志中,我看到以下异常:
Preparing Action ID: 1, "delete_indices"
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 601, in urlopen
chunked=chunked)
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 387, in _make_request
six.raise_from(e, None)
File "<string>", line 2, in raise_from
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 383, in _make_request
httplib_response = conn.getresponse()
File "/usr/local/lib/python3.6/http/client.py", line 1331, in getresponse
response.begin()
File "/usr/local/lib/python3.6/http/client.py", line 297, in begin
version, status, reason = self._read_status()
File "/usr/local/lib/python3.6/http/client.py", line 266, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response
它似乎正在尝试连接到 HTTP,而不是 HTTPS。我已经测试了从我的 k8s 集群到 es:443 的连接并且它有效。
您知道是否不支持 HTTPS 还是我做错了什么?
...
看来我在错误的部分传递了配置,而且它没有正确地提取它。我把它传到这里,它起作用了:
# Having config_yaml WILL override the other config
config_yml: |-
---
client:
hosts:
- my-es-aws-endpoint
port: 443
use_ssl: True
我正在使用以下 Helm 图表:https://github.com/kubernetes/charts/tree/master/incubator/elasticsearch-curator 并在我的 values.yaml 文件中传递以下内容:
config:
elasticsearch:
hosts:
- my-es-aws-endpoint
port: 443
ssl: True
在 pods 日志中,我看到以下异常:
Preparing Action ID: 1, "delete_indices"
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 601, in urlopen
chunked=chunked)
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 387, in _make_request
six.raise_from(e, None)
File "<string>", line 2, in raise_from
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 383, in _make_request
httplib_response = conn.getresponse()
File "/usr/local/lib/python3.6/http/client.py", line 1331, in getresponse
response.begin()
File "/usr/local/lib/python3.6/http/client.py", line 297, in begin
version, status, reason = self._read_status()
File "/usr/local/lib/python3.6/http/client.py", line 266, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response
它似乎正在尝试连接到 HTTP,而不是 HTTPS。我已经测试了从我的 k8s 集群到 es:443 的连接并且它有效。
您知道是否不支持 HTTPS 还是我做错了什么?
...
看来我在错误的部分传递了配置,而且它没有正确地提取它。我把它传到这里,它起作用了:
# Having config_yaml WILL override the other config
config_yml: |-
---
client:
hosts:
- my-es-aws-endpoint
port: 443
use_ssl: True