Skip to content

Commit

Permalink
Merge pull request #229 from loxilb-io/zoning-names
Browse files Browse the repository at this point in the history
PR - loxilb-io/loxilb#877 egress support - updated manifests
  • Loading branch information
inhogog2 authored Jan 16, 2025
2 parents b8012d3 + e7968ee commit a9c2050
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions manifest/in-cluster/loxilb-localvip.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ metadata:
annotations:
loxilb.io/egress: "yes"
loxilb.io/probetype: "none"
loxilb.io/staticIP: "0.0.0.0"
spec:
type: LoadBalancer
loadBalancerClass: loxilb.io/loxilb
Expand Down
1 change: 1 addition & 0 deletions manifest/in-cluster/loxilb-nobgp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ metadata:
annotations:
loxilb.io/egress: "yes"
loxilb.io/probetype: "none"
loxilb.io/staticIP: "0.0.0.0"
spec:
type: LoadBalancer
loadBalancerClass: loxilb.io/loxilb
Expand Down
1 change: 1 addition & 0 deletions manifest/in-cluster/loxilb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ metadata:
annotations:
loxilb.io/egress: "yes"
loxilb.io/probetype: "none"
loxilb.io/staticIP: "0.0.0.0"
spec:
type: LoadBalancer
loadBalancerClass: loxilb.io/loxilb
Expand Down
1 change: 1 addition & 0 deletions manifest/multus/loxilb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ metadata:
annotations:
loxilb.io/egress: "yes"
loxilb.io/probetype: "none"
loxilb.io/staticIP: "0.0.0.0"
spec:
type: LoadBalancer
loadBalancerClass: loxilb.io/loxilb
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ metadata:
annotations:
loxilb.io/egress: "yes"
loxilb.io/probetype: "none"
loxilb.io/staticIP: "0.0.0.0"
spec:
externalTrafficPolicy: Local
type: LoadBalancer
Expand Down
1 change: 1 addition & 0 deletions manifest/service-proxy/loxilb-service-proxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ metadata:
annotations:
loxilb.io/egress: "yes"
loxilb.io/probetype: "none"
loxilb.io/staticIP: "0.0.0.0"
spec:
type: LoadBalancer
loadBalancerClass: loxilb.io/loxilb
Expand Down
4 changes: 2 additions & 2 deletions pkg/agent/manager/loadbalancer/loadbalancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -2373,8 +2373,8 @@ loop:

for instName, vi := range aliveClient.InstRoles {
firstZoneName := api.GenZoneInstName(m.networkConfig.Zone, 0)
if instName == firstZoneName && m.networkConfig.Zone != api.CIDefault {
defaultZoneName := api.GenZoneInstName(api.CIDefault, 0)
if instName == firstZoneName && m.networkConfig.Zone != api.CIDefaultZone {
defaultZoneName := api.GenZoneInstName(api.CIDefaultZone, 0)
cisModel, err := m.makeLoxiLBCIStatusModel(instName, m.networkConfig.SetRoles, aliveClient)
cisModel.Instance = defaultZoneName
if err == nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func NewLoxiClientPool() *LoxiClientPool {
}

const (
CIDefault = "llb-inst0"
CIDefaultZone = "llb"
)

type LoxiClient struct {
Expand Down

0 comments on commit a9c2050

Please sign in to comment.