diff --git a/opensearch-operator/pkg/builders/cluster.go b/opensearch-operator/pkg/builders/cluster.go index 1fe9c615a..fd77b5e4b 100644 --- a/opensearch-operator/pkg/builders/cluster.go +++ b/opensearch-operator/pkg/builders/cluster.go @@ -618,6 +618,7 @@ func NewHeadlessServiceForNodePool(cr *opsterv1.OpenSearchCluster, nodePool *ops TargetPort: intstr.IntOrString{ IntVal: cr.Spec.General.HttpPort, }, + AppProtocol: pointer.String("https"), }, { Name: "transport", @@ -659,6 +660,7 @@ func NewServiceForCR(cr *opsterv1.OpenSearchCluster) *corev1.Service { TargetPort: intstr.IntOrString{ IntVal: cr.Spec.General.HttpPort, }, + AppProtocol: pointer.String("https"), }, { Name: "transport", @@ -748,6 +750,7 @@ func NewNodePortService(cr *opsterv1.OpenSearchCluster) *corev1.Service { TargetPort: intstr.IntOrString{ IntVal: cr.Spec.General.HttpPort, }, + AppProtocol: pointer.String("https"), }, }, Selector: labels,