Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR - loxilb-io/loxilb#877 egress support - updated manifests #229

Merged
merged 2 commits into from
Jan 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading