Open iAlex97 opened 3 years ago
Describing the EgressStaticIP
resource yields:
Name: test-egress
Namespace: default
Labels: <none>
Annotations: <none>
API Version: staticegressips.nirmata.io/v1alpha1
Kind: StaticEgressIP
Metadata:
Creation Timestamp: 2021-03-31T14:08:31Z
Generation: 2
Managed Fields:
API Version: staticegressips.nirmata.io/v1alpha1
Fields Type: FieldsV1
fieldsV1:
f:metadata:
f:annotations:
.:
f:kubectl.kubernetes.io/last-applied-configuration:
f:spec:
.:
f:rules:
Manager: kubectl-client-side-apply
Operation: Update
Time: 2021-03-31T14:08:31Z
API Version: staticegressips.nirmata.io/v1alpha1
Fields Type: FieldsV1
fieldsV1:
f:status:
.:
f:gateway-ip:
f:gateway-node:
Manager: static-egressip-gateway-manager
Operation: Update
Time: 2021-03-31T14:08:32Z
Resource Version: 10516862791
UID: a1a45fdf-30a2-4be9-85c7-ee1f2741b2df
Spec:
Rules:
Cidr: 151.115.41.82/32
Egressip: 51.15.136.12
Service - Name: frontend
Status:
Gateway - Ip: 10.70.118.71
Gateway - Node: dabdf368-d079-4f50-a9e6-47e4a324d2c2
Events: <none>
I would like to use the static egress functionality.
CNI: calico
I installed the CRD, RBAC, gateway-manager and controller just like the readme described.
Test env, 2 ubuntu replicas along a headless service for discovery:
Afterwards, I configured the following
StaticEgressIP
:When
StaticEgressIP
resource is in place, traffic no longer reaches the target machine, runningtraceroute
shows:Without it, traceroute successfully reaches the target machine:
My
kube-system
looks like this:Some logs from the
controller
:Logs from the selected
gateway-manager
:Is something wrong with my configuration?
From the last part of the readme "operator has to manually choose a node to act of Gateway by annotating the node". Which annotation should be used on which node? Also what gateway Ip should be
I tried doing this without any success (traffic is still routed trough
10.64.24.117
):