-
Notifications
You must be signed in to change notification settings - Fork 93
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
Embedded cluster working group #4076
Conversation
if embedded-cluster-config exists in kube-system it is helmvm add node metrics add node pod capacity and list of pods to node metrics implement per-node metrics endpoint with podlist
* generate a node join token * two mutexes, and do not restart successful pods * generate the full node join command * all controllers are also workers * allow arbitrary node roles * role is controller not controller+worker
* wip: refactor helm cluster page, add view node page * add new add node modal * protect routes * move parenthesis * use test data for now * add material react table * start connecting additional api calls, add test pod data * add material react table to display pods * revert change * uncomment real queries * fix useparams import * fix params/routing, update api route * fix loading/refetch state * update generate add node request * add error handling, add mui react table to cluster manage page * move ts-ignore line * remove delete functionality for now
* shorter commands wip * actually return the token * actually return token * return entire commands * handle error * fix lolgic * imports
add kube-proxy/os/kernel to node metrics return 'used' not 'available'
* remove pause and delete columns until the api code is ready, add loading state, update styles * update variable names, fix redirect to cluster manage
* make clipboard work with http, fix redirect to cluster manage page * right align columns, remove placeholders, add namespace column
* check for labels * make labels optional type
* implement 'IsHelmVM' function based on presence of configmap if embedded-cluster-config exists in kube-system it is helmvm * change namespace of embedded cluster config --------- Co-authored-by: Andrew Lavery <[email protected]>
* improve logic around initial cluster flow, comment test data * fix types, redirect on unknown or pending config status if helmvm
* node role labels * handle having no labels on the first node * f * include a prefix on the label * = not :
* fix config redirect, remove unnecessary code * linting
f5d63d8
to
1c3e657
Compare
* renaming things to 'embedded-cluster' * rename frontend * import ordering * undo goland's wonderful formatting changes * function naming * undo whitespace change
pkg/embeddedcluster/node_join.go
Outdated
Containers: []corev1.Container{ | ||
{ | ||
Name: "k0s-token-generator", | ||
Image: "ubuntu:latest", // TODO use the kotsadm image here as we'll know it exists |
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.
is this a "we'll do this in a separate pr" type of TODO?
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.
haaaaaah
no that's a "we intended to be using a different method that didn't happen yet" type of TODO
let me see how much effort that'll take
Co-authored-by: Salah Al Saleh <[email protected]>
cd4c012
to
e462416
Compare
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Steps to reproduce
Does this PR introduce a user-facing change?
Does this PR require documentation?