Merge pull request #1845 from PROCYDE/shuffle-app-protocol

feat(k8s): specify app protocol for worker and app services
This commit is contained in:
Frikky
2025-10-16 20:29:56 +02:00
committed by GitHub
2 changed files with 10 additions and 6 deletions
+5 -3
View File
@@ -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,