opensearch-project / helm-charts

:wheel_of_dharma: A community repository for Helm Charts of OpenSearch Project.
https://opensearch.org/docs/latest/opensearch/install/helm/
Apache License 2.0
170 stars 228 forks source link

Opensearch-dashboard pod not assining ipv6 address inside the pod in kubernates #493

Open ganilmca opened 11 months ago

ganilmca commented 11 months ago

Hi Team,

We were unable to do port-forward in opensearch-dashboard pod in kubernates cluster by using ipv6 address like below command.

kubectl port-forward opensearch-dashboards-57b46c69ff-q25pw 5601:5601 --address [2a00:fbc:3110:1502:b520:22:1:0] -n ns

And also unable to run curl command like below.

curl -gkv -u admin:admin http://[2a00:fbc:3110:1502:c01e:b55:c9f1:5101]:5601

We were getting "Connection refused" here.

When i see inside pod it showing empty in server host [opensearch-dashboards@kibana-opensearch-dashboards-676b8d69c4-tbn55 ~]$ env | grep SERVER SERVER_HOST=

We are using in our values.yaml file like below. serverHost: "eth0:ipv6" serverHost: "global:ipv6" serverHost: "[::0]"

service: type: ClusterIP ipFamilies:

Still we were unable to deploy the opensearch-dashboard pod.

Please tell us how to overcome this issue.

Thanks, Anil

prudhvigodithi commented 11 months ago

[Untriage] Hey @ganilmca happy to help but this looks to me more like an error from kubernetes end and not with OpenSearch helm chart? Did you setup work with regular ipv4? Also did you set use server.host to set the ipv6?

Adding @kavilla @AMoo-miki is there a limitation setting server.host with an ipv6 from OpenSearch Dashboards?

@bbarani @peterzhuamazon @premkirank @TrungBui59