simplify
This commit is contained in:
parent
58aa518ba7
commit
a5c5e85f2a
|
@ -25,21 +25,21 @@ func (r *SeaweedReconciler) createFilerHeadlessService(m *seaweedv1.Seaweed) *co
|
|||
PublishNotReadyAddresses: true,
|
||||
Ports: []corev1.ServicePort{
|
||||
{
|
||||
Name: "swfs-filer",
|
||||
Protocol: corev1.Protocol("TCP"),
|
||||
Port: 8888,
|
||||
Name: "swfs-filer",
|
||||
Protocol: corev1.Protocol("TCP"),
|
||||
Port: 8888,
|
||||
TargetPort: intstr.FromInt(8888),
|
||||
},
|
||||
{
|
||||
Name: "swfs-filer-grpc",
|
||||
Protocol: corev1.Protocol("TCP"),
|
||||
Port: 18888,
|
||||
Name: "swfs-filer-grpc",
|
||||
Protocol: corev1.Protocol("TCP"),
|
||||
Port: 18888,
|
||||
TargetPort: intstr.FromInt(18888),
|
||||
},
|
||||
{
|
||||
Name: "swfs-s3",
|
||||
Protocol: corev1.Protocol("TCP"),
|
||||
Port: 8333,
|
||||
Name: "swfs-s3",
|
||||
Protocol: corev1.Protocol("TCP"),
|
||||
Port: 8333,
|
||||
TargetPort: intstr.FromInt(8333),
|
||||
},
|
||||
},
|
||||
|
@ -66,25 +66,25 @@ func (r *SeaweedReconciler) createFilerNodePortService(m *seaweedv1.Seaweed) *co
|
|||
PublishNotReadyAddresses: true,
|
||||
Ports: []corev1.ServicePort{
|
||||
{
|
||||
Name: "swfs-filer",
|
||||
Protocol: corev1.Protocol("TCP"),
|
||||
Port: 8888,
|
||||
Name: "swfs-filer",
|
||||
Protocol: corev1.Protocol("TCP"),
|
||||
Port: 8888,
|
||||
TargetPort: intstr.FromInt(8888),
|
||||
NodePort: 30888,
|
||||
NodePort: 30888,
|
||||
},
|
||||
{
|
||||
Name: "swfs-filer-grpc",
|
||||
Protocol: corev1.Protocol("TCP"),
|
||||
Port: 18888,
|
||||
Name: "swfs-filer-grpc",
|
||||
Protocol: corev1.Protocol("TCP"),
|
||||
Port: 18888,
|
||||
TargetPort: intstr.FromInt(18888),
|
||||
NodePort: 31888,
|
||||
NodePort: 31888,
|
||||
},
|
||||
{
|
||||
Name: "swfs-s3",
|
||||
Protocol: corev1.Protocol("TCP"),
|
||||
Port: 8333,
|
||||
Name: "swfs-s3",
|
||||
Protocol: corev1.Protocol("TCP"),
|
||||
Port: 8333,
|
||||
TargetPort: intstr.FromInt(8333),
|
||||
NodePort: 30833,
|
||||
NodePort: 30833,
|
||||
},
|
||||
},
|
||||
Selector: labels,
|
||||
|
|
|
@ -25,15 +25,15 @@ func (r *SeaweedReconciler) createMasterService(m *seaweedv1.Seaweed) *corev1.Se
|
|||
PublishNotReadyAddresses: true,
|
||||
Ports: []corev1.ServicePort{
|
||||
{
|
||||
Name: "swfs-master",
|
||||
Protocol: corev1.Protocol("TCP"),
|
||||
Port: 9333,
|
||||
Name: "swfs-master",
|
||||
Protocol: corev1.Protocol("TCP"),
|
||||
Port: 9333,
|
||||
TargetPort: intstr.FromInt(9333),
|
||||
},
|
||||
{
|
||||
Name: "swfs-master-grpc",
|
||||
Protocol: corev1.Protocol("TCP"),
|
||||
Port: 19333,
|
||||
Name: "swfs-master-grpc",
|
||||
Protocol: corev1.Protocol("TCP"),
|
||||
Port: 19333,
|
||||
TargetPort: intstr.FromInt(19333),
|
||||
},
|
||||
},
|
||||
|
|
|
@ -25,15 +25,15 @@ func (r *SeaweedReconciler) createVolumeServerService(m *seaweedv1.Seaweed) *cor
|
|||
PublishNotReadyAddresses: true,
|
||||
Ports: []corev1.ServicePort{
|
||||
{
|
||||
Name: "swfs-volume",
|
||||
Protocol: corev1.Protocol("TCP"),
|
||||
Port: 8444,
|
||||
Name: "swfs-volume",
|
||||
Protocol: corev1.Protocol("TCP"),
|
||||
Port: 8444,
|
||||
TargetPort: intstr.FromInt(8444),
|
||||
},
|
||||
{
|
||||
Name: "swfs-volume-grpc",
|
||||
Protocol: corev1.Protocol("TCP"),
|
||||
Port: 18444,
|
||||
Name: "swfs-volume-grpc",
|
||||
Protocol: corev1.Protocol("TCP"),
|
||||
Port: 18444,
|
||||
TargetPort: intstr.FromInt(18444),
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue