Skip to content
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

document capability for excluding nodes from loadbalancer pools #793

Open
kwmonroe opened this issue Sep 8, 2023 · 0 comments
Open

document capability for excluding nodes from loadbalancer pools #793

kwmonroe opened this issue Sep 8, 2023 · 0 comments

Comments

@kwmonroe
Copy link
Member

kwmonroe commented Sep 8, 2023

We need a doc update to note a potential security concern where control plane nodes may be added to a loadbalancer pool. See below for full context. We should call out the juju config k-c-p labels suggestion as a mitigation for this concern. Perhaps in our LB overview page or specifically near the other security concern for o7k octavia LBs here(ish):

https://ubuntu.com/kubernetes/docs/openstack-integration#using-octavia-load-balancers


Field reports:

I have 3x control nodes and 3x worker nodes. When an LB is created, the openstack loadbalancer pool gets 6x members registered. I can confirm control nodes also get registered...My recommendation is to enable:

https://kubernetes.io/docs/reference/labels-annotations-taints/#node-kubernetes-io-exclude-from-external-load-balancers

Reponse:

The control plane charm has a space-separated labels config that may serve your needs without changing the default behavior. You could add the exclusion label like this:

juju config kubernetes-control-plane \
  labels="node.kubernetes.io/exclude-from-external-load-balancers=true node-role.kubernetes.io/control-plane="

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant