Open tgdfool2 opened 1 day ago
It seems that there is indeed a lack of a way to pass labels from lb-svc to deployment。
Thanks for confirming!
Not sure what would be the best way to enable this kind of configuration; maybe a new ConfigMap
similar to the ovn-vpc-nat-config
(https://kube-ovn.readthedocs.io/zh-cn/latest/en/guide/vpc/#enabling-the-vpc-gateway) one?
Description
Hi Everyone,
In our setup, we have VLAN interfaces that are only available/configured on the Kubernetes Master Nodes.
The following
NetworkAttachmentDefinition
has been created:The
VpcNatGateway
is deployed with the followingselector
, which forces it to run onkube-ovn
masters:The issue comes when a
LoadBalancer
Service gets created and wants to request an IP in thevlan201-external-subnet
Subnet. If thelb-svc-*
Pod gets scheduled on a non-kube-ovn
master node, it fails to get an IP. Manually editing theDeployment
and specifying anodeSelector
fixes this issue:Is there already a way to specify this
nodeSelector
? Looking at the source code, it does not seem to be the case:Thanks in advance for your support!
Who will benefit from this feature?
No response
Anything else?
No response