diff --git a/functions/onprem/orborus/orborus.go b/functions/onprem/orborus/orborus.go index 02f91d0e..4b4c7a70 100755 --- a/functions/onprem/orborus/orborus.go +++ b/functions/onprem/orborus/orborus.go @@ -1399,6 +1399,7 @@ func deployK8sWorker(image string, identifier string, env []string) error { return err } + svcAppProtocol := "http" service := &corev1.Service{ ObjectMeta: metav1.ObjectMeta{ Name: identifier, @@ -1408,9 +1409,10 @@ func deployK8sWorker(image string, identifier string, env []string) error { Selector: matchLabels, Ports: []corev1.ServicePort{ { - Protocol: "TCP", - Port: 33333, - TargetPort: intstr.FromInt(33333), + Protocol: "TCP", + AppProtocol: &svcAppProtocol, + Port: 33333, + TargetPort: intstr.FromInt(33333), }, }, Type: corev1.ServiceTypeClusterIP, diff --git a/functions/onprem/worker/worker.go b/functions/onprem/worker/worker.go index e8969424..82e70a40 100644 --- a/functions/onprem/worker/worker.go +++ b/functions/onprem/worker/worker.go @@ -699,6 +699,7 @@ func deployk8sApp(image string, identifier string, env []string) error { return err } + svcAppProtocol := "http" service := &corev1.Service{ ObjectMeta: metav1.ObjectMeta{ Name: name, @@ -708,9 +709,10 @@ func deployk8sApp(image string, identifier string, env []string) error { Selector: matchLabels, Ports: []corev1.ServicePort{ { - Protocol: "TCP", - Port: 80, - TargetPort: intstr.FromInt(deployport), + Protocol: "TCP", + AppProtocol: &svcAppProtocol, + Port: 80, + TargetPort: intstr.FromInt(deployport), }, }, Type: corev1.ServiceTypeClusterIP,