opensearch-project / opensearch-k8s-operator

OpenSearch Kubernetes Operator
Apache License 2.0
405 stars 218 forks source link

[Enhancement][opensearch] support appProtocol in service declaration for https communication as a gateway backend #751

Open dhardy92 opened 8 months ago

dhardy92 commented 8 months ago

Hello, In our GKE cluster, we would use Kubernetes Gateway to expose Opensearch service on VPC as described in https://cloud.google.com/kubernetes-engine/docs/how-to/secure-gateway#load-balancer-tls

Add a possibility via operator file to specify spec.port[].appProtocol: https in opensearch service

Acording to https://pkg.go.dev/k8s.io/api/core/v1#ServicePort, this would be possible adding AppProtocol: "https" in block https://github.com/opensearch-project/opensearch-k8s-operator/blob/0494837c7bf02c348b12ed6f8edbaa70a085624b/opensearch-operator/pkg/builders/cluster.go#L651-L657

Thank you

salyh commented 8 months ago

This would absolutely make sense. Thank you for your contribution.

@dhardy92 Do you want to open a PR for that?