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