Skip to content

Commit

Permalink
feat: pass address to LoadBalancerIP (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
winston0410 authored Jul 3, 2024
1 parent a11b890 commit d954499
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/controllers/wireguard_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,8 @@ func (r *WireguardReconciler) serviceForWireguard(m *v1alpha1.Wireguard, service
Labels: labels,
},
Spec: corev1.ServiceSpec{
Selector: labels,
LoadBalancerIP: m.Spec.Address,
Selector: labels,
Ports: []corev1.ServicePort{{
Protocol: corev1.ProtocolUDP,
NodePort: m.Spec.NodePort,
Expand Down

0 comments on commit d954499

Please sign in to comment.