Add name for the service port
This commit is contained in:
parent
dd2ed5ff9d
commit
16cc517106
|
|
@ -247,7 +247,7 @@ func (c *Cluster) genService(allowedSourceRanges []string) *v1.Service {
|
||||||
},
|
},
|
||||||
Spec: v1.ServiceSpec{
|
Spec: v1.ServiceSpec{
|
||||||
Type: v1.ServiceTypeLoadBalancer,
|
Type: v1.ServiceTypeLoadBalancer,
|
||||||
Ports: []v1.ServicePort{{Port: 5432, TargetPort: intstr.IntOrString{IntVal: 5432}}},
|
Ports: []v1.ServicePort{{Name: "Postgresql", Port: 5432, TargetPort: intstr.IntOrString{IntVal: 5432}}},
|
||||||
LoadBalancerSourceRanges: allowedSourceRanges,
|
LoadBalancerSourceRanges: allowedSourceRanges,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue