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
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
svcAppProtocol := "http"
|
||||||
service := &corev1.Service{
|
service := &corev1.Service{
|
||||||
ObjectMeta: metav1.ObjectMeta{
|
ObjectMeta: metav1.ObjectMeta{
|
||||||
Name: identifier,
|
Name: identifier,
|
||||||
@@ -1409,6 +1410,7 @@ func deployK8sWorker(image string, identifier string, env []string) error {
|
|||||||
Ports: []corev1.ServicePort{
|
Ports: []corev1.ServicePort{
|
||||||
{
|
{
|
||||||
Protocol: "TCP",
|
Protocol: "TCP",
|
||||||
|
AppProtocol: &svcAppProtocol,
|
||||||
Port: 33333,
|
Port: 33333,
|
||||||
TargetPort: intstr.FromInt(33333),
|
TargetPort: intstr.FromInt(33333),
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -699,6 +699,7 @@ func deployk8sApp(image string, identifier string, env []string) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
svcAppProtocol := "http"
|
||||||
service := &corev1.Service{
|
service := &corev1.Service{
|
||||||
ObjectMeta: metav1.ObjectMeta{
|
ObjectMeta: metav1.ObjectMeta{
|
||||||
Name: name,
|
Name: name,
|
||||||
@@ -709,6 +710,7 @@ func deployk8sApp(image string, identifier string, env []string) error {
|
|||||||
Ports: []corev1.ServicePort{
|
Ports: []corev1.ServicePort{
|
||||||
{
|
{
|
||||||
Protocol: "TCP",
|
Protocol: "TCP",
|
||||||
|
AppProtocol: &svcAppProtocol,
|
||||||
Port: 80,
|
Port: 80,
|
||||||
TargetPort: intstr.FromInt(deployport),
|
TargetPort: intstr.FromInt(deployport),
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user