diff --git a/opensearch-operator/pkg/builders/cluster.go b/opensearch-operator/pkg/builders/cluster.go index 581220a8..c4e18118 100644 --- a/opensearch-operator/pkg/builders/cluster.go +++ b/opensearch-operator/pkg/builders/cluster.go @@ -634,6 +634,7 @@ func NewServiceForCR(cr *opsterv1.OpenSearchCluster) *corev1.Service { labels := map[string]string{ helpers.ClusterLabel: cr.Name, } + httpsProtocol := "HTTPS" return &corev1.Service{ TypeMeta: metav1.TypeMeta{ Kind: "Service", @@ -650,6 +651,7 @@ func NewServiceForCR(cr *opsterv1.OpenSearchCluster) *corev1.Service { { Name: "http", Protocol: "TCP", + AppProtocol: &httpsProtocol, Port: cr.Spec.General.HttpPort, TargetPort: intstr.IntOrString{ IntVal: cr.Spec.General.HttpPort,