simplify
This commit is contained in:
parent
4df48f08de
commit
58aa518ba7
|
@ -28,28 +28,19 @@ func (r *SeaweedReconciler) createFilerHeadlessService(m *seaweedv1.Seaweed) *co
|
|||
Name: "swfs-filer",
|
||||
Protocol: corev1.Protocol("TCP"),
|
||||
Port: 8888,
|
||||
TargetPort: intstr.IntOrString{
|
||||
Type: intstr.Int,
|
||||
IntVal: 8888,
|
||||
},
|
||||
TargetPort: intstr.FromInt(8888),
|
||||
},
|
||||
{
|
||||
Name: "swfs-filer-grpc",
|
||||
Protocol: corev1.Protocol("TCP"),
|
||||
Port: 18888,
|
||||
TargetPort: intstr.IntOrString{
|
||||
Type: intstr.Int,
|
||||
IntVal: 18888,
|
||||
},
|
||||
TargetPort: intstr.FromInt(18888),
|
||||
},
|
||||
{
|
||||
Name: "swfs-s3",
|
||||
Protocol: corev1.Protocol("TCP"),
|
||||
Port: 8333,
|
||||
TargetPort: intstr.IntOrString{
|
||||
Type: intstr.Int,
|
||||
IntVal: 8333,
|
||||
},
|
||||
TargetPort: intstr.FromInt(8333),
|
||||
},
|
||||
},
|
||||
Selector: labels,
|
||||
|
@ -78,30 +69,21 @@ func (r *SeaweedReconciler) createFilerNodePortService(m *seaweedv1.Seaweed) *co
|
|||
Name: "swfs-filer",
|
||||
Protocol: corev1.Protocol("TCP"),
|
||||
Port: 8888,
|
||||
TargetPort: intstr.IntOrString{
|
||||
Type: intstr.Int,
|
||||
IntVal: 8888,
|
||||
},
|
||||
TargetPort: intstr.FromInt(8888),
|
||||
NodePort: 30888,
|
||||
},
|
||||
{
|
||||
Name: "swfs-filer-grpc",
|
||||
Protocol: corev1.Protocol("TCP"),
|
||||
Port: 18888,
|
||||
TargetPort: intstr.IntOrString{
|
||||
Type: intstr.Int,
|
||||
IntVal: 18888,
|
||||
},
|
||||
TargetPort: intstr.FromInt(18888),
|
||||
NodePort: 31888,
|
||||
},
|
||||
{
|
||||
Name: "swfs-s3",
|
||||
Protocol: corev1.Protocol("TCP"),
|
||||
Port: 8333,
|
||||
TargetPort: intstr.IntOrString{
|
||||
Type: intstr.Int,
|
||||
IntVal: 8333,
|
||||
},
|
||||
TargetPort: intstr.FromInt(8333),
|
||||
NodePort: 30833,
|
||||
},
|
||||
},
|
||||
|
|
|
@ -28,19 +28,13 @@ func (r *SeaweedReconciler) createMasterService(m *seaweedv1.Seaweed) *corev1.Se
|
|||
Name: "swfs-master",
|
||||
Protocol: corev1.Protocol("TCP"),
|
||||
Port: 9333,
|
||||
TargetPort: intstr.IntOrString{
|
||||
Type: intstr.Int,
|
||||
IntVal: 9333,
|
||||
},
|
||||
TargetPort: intstr.FromInt(9333),
|
||||
},
|
||||
{
|
||||
Name: "swfs-master-grpc",
|
||||
Protocol: corev1.Protocol("TCP"),
|
||||
Port: 19333,
|
||||
TargetPort: intstr.IntOrString{
|
||||
Type: intstr.Int,
|
||||
IntVal: 19333,
|
||||
},
|
||||
TargetPort: intstr.FromInt(19333),
|
||||
},
|
||||
},
|
||||
Selector: labels,
|
||||
|
|
|
@ -28,19 +28,13 @@ func (r *SeaweedReconciler) createVolumeServerService(m *seaweedv1.Seaweed) *cor
|
|||
Name: "swfs-volume",
|
||||
Protocol: corev1.Protocol("TCP"),
|
||||
Port: 8444,
|
||||
TargetPort: intstr.IntOrString{
|
||||
Type: intstr.Int,
|
||||
IntVal: 8444,
|
||||
},
|
||||
TargetPort: intstr.FromInt(8444),
|
||||
},
|
||||
{
|
||||
Name: "swfs-volume-grpc",
|
||||
Protocol: corev1.Protocol("TCP"),
|
||||
Port: 18444,
|
||||
TargetPort: intstr.IntOrString{
|
||||
Type: intstr.Int,
|
||||
IntVal: 18444,
|
||||
},
|
||||
TargetPort: intstr.FromInt(18444),
|
||||
},
|
||||
},
|
||||
Selector: labels,
|
||||
|
|
Loading…
Reference in New Issue