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
+2
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,
@@ -1409,6 +1410,7 @@ func deployK8sWorker(image string, identifier string, env []string) error {
Ports: []corev1.ServicePort{
{
Protocol: "TCP",
AppProtocol: &svcAppProtocol,
Port: 33333,
TargetPort: intstr.FromInt(33333),
},
+2
View File
@@ -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,
@@ -709,6 +710,7 @@ func deployk8sApp(image string, identifier string, env []string) error {
Ports: []corev1.ServicePort{
{
Protocol: "TCP",
AppProtocol: &svcAppProtocol,
Port: 80,
TargetPort: intstr.FromInt(deployport),
},