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
Add annotations when creating load balancer #16
Conversation
f0fd8c7
to
78dd5c2
Compare
236bf9e
to
74cd092
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks
- loadbalancer.harvesterhci.io/network - loadbalancer.harvesterhci.io/project - loadbalancer.harvesterhci.io/namespace
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, verified that the guest LB with IP pool config can get IP correctly, thanks.
apiVersion: loadbalancer.harvesterhci.io/v1beta1 │
│ kind: LoadBalancer │
│ metadata: │
│ annotations: │
│ loadbalancer.harvesterhci.io/cluster: rke2-lb │
│ loadbalancer.harvesterhci.io/namespace: default │
│ loadbalancer.harvesterhci.io/network: default/vlan1238 │
│ loadbalancer.harvesterhci.io/project: c-m-28b8nfb4/p-srzp5 │
│ creationTimestamp: "2023-06-15T10:24:30Z" │
│ finalizers: │
│ - wrangler.cattle.io/harvester-lb-controller │
│ generation: 2 │
│ labels: │
│ cloudprovider.harvesterhci.io/cluster: rke2-lb │
│ cloudprovider.harvesterhci.io/serviceName: foo │
│ cloudprovider.harvesterhci.io/serviceNamespace: default │
│ name: rke2-lb-default-foo-a794f73b │
│ namespace: default │
│ resourceVersion: "17018118" │
│ uid: eb377caa-e3b8-4f0c-b776-f7b4a5408290 │
│ spec: │
│ ipam: pool │
│ workloadType: cluster │
│ status: │
│ address: 10.84.103.193 │
│ allocatedAddress: │
│ gateway: 10.84.103.254 │
│ ip: 10.84.103.193 │
│ ipPool: guest-rke2 │
│ mask: 255.255.255.192 │
│ conditions: │
│ - lastUpdateTime: "2023-06-15T10:24:30Z" │
│ status: "True" │
│ type: Ready │
Add annotations
IP pool module will select the IP pool automatically according to those annotations.
Related issue: harvester/harvester#2134
Dependency chart PR: harvester/charts#178