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

node: fix known labels #8

Merged
merged 1 commit into from
Dec 15, 2020
Merged

Conversation

pires
Copy link
Member

@pires pires commented Dec 15, 2020

First, this addresses a problem where nodes are not allowed to set their role. I don't know how you got this working because it doesn't work for me: get a 403 Forbidden when registering the node. Maybe it's the k3s thing that's more permissive?

Then, we set the known label kubernetes.io/os to Linux, which is what workloads usually refer to (PodSpec.nodeSelector) to ensure they're not placed on nodes running other OSes, ie Windows.

@pires pires requested a review from miekg December 15, 2020 09:57
@pires pires added bug Something isn't working enhancement New feature or request labels Dec 15, 2020
@miekg miekg merged commit e4e08d5 into virtual-kubelet:main Dec 15, 2020
@pires pires deleted the bugfix/node_labels branch December 15, 2020 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants