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

Add an example initialization script for MCM #768

Open
Tracked by #770
himanshu-kun opened this issue Jan 18, 2023 · 6 comments
Open
Tracked by #770

Add an example initialization script for MCM #768

himanshu-kun opened this issue Jan 18, 2023 · 6 comments
Labels
area/usability Usability related kind/enhancement Enhancement, improvement, extension lifecycle/rotten Nobody worked on this for 12 months (final aging stage) needs/planning Needs (more) planning with other MCM maintainers priority/3 Priority (lower number equals higher priority)

Comments

@himanshu-kun
Copy link
Contributor

How to categorize this issue?

/area usability
/kind enhancement
/priority 3

What would you like to be added:
Currently MCM doesn't provide an example script to do the bootstrapping of its nodes. This blocks potential users to try MCM out quickly as w/o this script the machine would always be in Pending state.

Why is this needed:
To give a better hands-on experience to users

@himanshu-kun himanshu-kun added the kind/enhancement Enhancement, improvement, extension label Jan 18, 2023
@gardener-robot gardener-robot added area/usability Usability related priority/3 Priority (lower number equals higher priority) labels Jan 18, 2023
@AhmedMozaly
Copy link

AhmedMozaly commented Jan 18, 2023

As I'm blocked right now, I can give it a try writing this example
I just need some hints. I think we should use https://kubernetes.io/docs/reference/setup-tools/kubeadm/kubeadm-join/ right?

If it will make any difference, I'm using https://github.com/gardener/machine-controller-manager-provider-gcp

@himanshu-kun
Copy link
Contributor Author

I am discussing this internally , will update you with the next steps , once the discussion is concluded
cc @unmarshall

@AhmedMozaly
Copy link

Thanks @himanshu-kun for this update
I would appreciate if you can share the general guidelines (even if not yet final), as I'm currently trying to write a minimal initialization script

@AhmedMozaly
Copy link

Hi @himanshu-kun
Do you know if MCM works with GKE (managed clusters on GPC) ?

@himanshu-kun
Copy link
Contributor Author

@AhmedMozaly you can write a script by taking inspiration from here https://github.com/gardener/gardener/blob/master/docs/extensions/operatingsystemconfig.md

MCM can work in any kubernetes cluster , you can deploy it as an independent entity in the kube-system namespace. Also there is no dependency on gardener for MCM.
But you will need to figure out how to initialize the VM, the way GKE does in its clusters and add it, not sure if they have any documentation abt it.
I am not aware what they use internally to provision VMs.
Could I know your use-case?

@AhmedMozaly
Copy link

@himanshu-kun I've number of VMs running on GCP that are IO bound
I need to manage these VMs from k8s (creating/destroying/monitoring) but without running any pods on. As the the workload running on these machines is not easy to dockerize at the moment

So, using a custom k8s controller should be a saver solution here to monitor these VMs health & destroy any one that is not healthy and create new one instead

I've a GCP GKE cluster that I'm trying to run MCM at

@himanshu-kun himanshu-kun added the needs/planning Needs (more) planning with other MCM maintainers label Feb 24, 2023
@gardener-robot gardener-robot added the lifecycle/stale Nobody worked on this for 6 months (will further age) label Nov 3, 2023
@gardener-robot gardener-robot added lifecycle/rotten Nobody worked on this for 12 months (final aging stage) and removed lifecycle/stale Nobody worked on this for 6 months (will further age) labels Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/usability Usability related kind/enhancement Enhancement, improvement, extension lifecycle/rotten Nobody worked on this for 12 months (final aging stage) needs/planning Needs (more) planning with other MCM maintainers priority/3 Priority (lower number equals higher priority)
Projects
None yet
Development

No branches or pull requests

3 participants