k8s-operator: starting network proxy ha mode

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>
This commit is contained in:
chaosinthecrd 2025-04-23 17:14:15 +01:00
parent c28fda864a
commit 48c0dc6e39
No known key found for this signature in database
GPG Key ID: 87942E75F71EF65D
2 changed files with 1079 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,20 @@
package ingressservices
import "net/netip"
const (
IngressConfigKey = "ingress-config.json"
)
// Configs contains the desired configuration for egress services keyed by
// service name.
type Configs map[string]Config
type Mapping map[netip.Addr]netip.Addr
// Config is an ingress service configuration.
type Config struct {
VIPServiceIP netip.Addr `json:"vipServiceIP"`
IPv4Mapping Mapping `json:"IPv4Mapping"`
IPv6Mapping Mapping `json:"IPv6Mapping"`
}