You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does vpc-nat-gateway annotation is used only "kubernetes.io/hostname" and "kubernetes.io/os" these label bc I saw the code It seems like I can define the label.
The selector field in the VpcNatGateway specification allows you to define custom labels, not just limited to "kubernetes.io/hostname" and "kubernetes.io/os". You can specify any labels that match the nodes you want to target. The function isVpcNatGwChanged in the kube-ovn codebase processes the selector field by checking if it has changed compared to the status, which indicates that you can define and use custom labels in the selector field [1].
Does vpc-nat-gateway annotation is used only "kubernetes.io/hostname" and "kubernetes.io/os" these label bc I saw the code It seems like I can define the label.
kind: VpcNatGateway
apiVersion: kubeovn.io/v1
metadata:
name: gw1
spec:
vpc: test-vpc-1
subnet: net1
lanIp: 10.0.1.254
selector:
- "kubernetes.io/hostname: kube-ovn-worker"
- "kubernetes.io/os: linux"
externalSubnets:
- ovn-vpc-external-network
The text was updated successfully, but these errors were encountered: