Merge pull request #1845 from PROCYDE/shuffle-app-protocol
feat(k8s): specify app protocol for worker and app services
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user