Unable to connect to opensearch by python client to the ingress with subpath

ok, i find the solution,
u need to add subPath as a Url prefix parmeters in the hosts array,
example:
client = OpenSearch(
hosts = [{‘host’: ‘opens.com’, ‘port’: ‘443’, ‘url_prefix’: ‘opensearch’ }],
http_auth = auth,
http_compress = True,
use_ssl = True,
verify_certs = True,
ssl_assert_hostname = ‘master01.ent.core.medtronic.com’,
ssl_show_warn = True,
)

1 Like