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",
|
Name: "swfs-filer",
|
||||||
Protocol: corev1.Protocol("TCP"),
|
Protocol: corev1.Protocol("TCP"),
|
||||||
Port: 8888,
|
Port: 8888,
|
||||||
TargetPort: intstr.IntOrString{
|
TargetPort: intstr.FromInt(8888),
|
||||||
Type: intstr.Int,
|
|
||||||
IntVal: 8888,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "swfs-filer-grpc",
|
Name: "swfs-filer-grpc",
|
||||||
Protocol: corev1.Protocol("TCP"),
|
Protocol: corev1.Protocol("TCP"),
|
||||||
Port: 18888,
|
Port: 18888,
|
||||||
TargetPort: intstr.IntOrString{
|
TargetPort: intstr.FromInt(18888),
|
||||||
Type: intstr.Int,
|
|
||||||
IntVal: 18888,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "swfs-s3",
|
Name: "swfs-s3",
|
||||||
Protocol: corev1.Protocol("TCP"),
|
Protocol: corev1.Protocol("TCP"),
|
||||||
Port: 8333,
|
Port: 8333,
|
||||||
TargetPort: intstr.IntOrString{
|
TargetPort: intstr.FromInt(8333),
|
||||||
Type: intstr.Int,
|
|
||||||
IntVal: 8333,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Selector: labels,
|
Selector: labels,
|
||||||
|
@ -78,30 +69,21 @@ func (r *SeaweedReconciler) createFilerNodePortService(m *seaweedv1.Seaweed) *co
|
||||||
Name: "swfs-filer",
|
Name: "swfs-filer",
|
||||||
Protocol: corev1.Protocol("TCP"),
|
Protocol: corev1.Protocol("TCP"),
|
||||||
Port: 8888,
|
Port: 8888,
|
||||||
TargetPort: intstr.IntOrString{
|
TargetPort: intstr.FromInt(8888),
|
||||||
Type: intstr.Int,
|
|
||||||
IntVal: 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.IntOrString{
|
TargetPort: intstr.FromInt(18888),
|
||||||
Type: intstr.Int,
|
|
||||||
IntVal: 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.IntOrString{
|
TargetPort: intstr.FromInt(8333),
|
||||||
Type: intstr.Int,
|
|
||||||
IntVal: 8333,
|
|
||||||
},
|
|
||||||
NodePort: 30833,
|
NodePort: 30833,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -28,19 +28,13 @@ func (r *SeaweedReconciler) createMasterService(m *seaweedv1.Seaweed) *corev1.Se
|
||||||
Name: "swfs-master",
|
Name: "swfs-master",
|
||||||
Protocol: corev1.Protocol("TCP"),
|
Protocol: corev1.Protocol("TCP"),
|
||||||
Port: 9333,
|
Port: 9333,
|
||||||
TargetPort: intstr.IntOrString{
|
TargetPort: intstr.FromInt(9333),
|
||||||
Type: intstr.Int,
|
|
||||||
IntVal: 9333,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "swfs-master-grpc",
|
Name: "swfs-master-grpc",
|
||||||
Protocol: corev1.Protocol("TCP"),
|
Protocol: corev1.Protocol("TCP"),
|
||||||
Port: 19333,
|
Port: 19333,
|
||||||
TargetPort: intstr.IntOrString{
|
TargetPort: intstr.FromInt(19333),
|
||||||
Type: intstr.Int,
|
|
||||||
IntVal: 19333,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Selector: labels,
|
Selector: labels,
|
||||||
|
|
|
@ -28,19 +28,13 @@ func (r *SeaweedReconciler) createVolumeServerService(m *seaweedv1.Seaweed) *cor
|
||||||
Name: "swfs-volume",
|
Name: "swfs-volume",
|
||||||
Protocol: corev1.Protocol("TCP"),
|
Protocol: corev1.Protocol("TCP"),
|
||||||
Port: 8444,
|
Port: 8444,
|
||||||
TargetPort: intstr.IntOrString{
|
TargetPort: intstr.FromInt(8444),
|
||||||
Type: intstr.Int,
|
|
||||||
IntVal: 8444,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "swfs-volume-grpc",
|
Name: "swfs-volume-grpc",
|
||||||
Protocol: corev1.Protocol("TCP"),
|
Protocol: corev1.Protocol("TCP"),
|
||||||
Port: 18444,
|
Port: 18444,
|
||||||
TargetPort: intstr.IntOrString{
|
TargetPort: intstr.FromInt(18444),
|
||||||
Type: intstr.Int,
|
|
||||||
IntVal: 18444,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Selector: labels,
|
Selector: labels,
|
||||||
|
|
Loading…
Reference in New Issue