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

Custom Node Image with Preinstalled Deployments #3329

Closed
tommazzo89 opened this issue Aug 14, 2023 · 3 comments
Closed

Custom Node Image with Preinstalled Deployments #3329

tommazzo89 opened this issue Aug 14, 2023 · 3 comments
Labels
kind/support Categorizes issue or PR as a support question.

Comments

@tommazzo89
Copy link

Hi everyone,

I would like to prepare a local Kubernetes cluster with Prometheus preinstalled that can be easily shared with others. I will hold a workshop, where the attendees will need this to code along. I thought that a kind node image that already contains a Prometheus installation would be the ideal way to go. Is this possible and, if yes, how could I achieve that?

Thanks a lot in advance!

@tommazzo89 tommazzo89 added the kind/support Categorizes issue or PR as a support question. label Aug 14, 2023
@BenTheElder
Copy link
Member

It's not, because we have to bootstrap Kubernetes at runtime.

However, you can see #2303 for how the images could be pre-loaded with some hacks. The manifest will still need to be kubectl apply at runtime (or similar).

@lewisxin
Copy link

lewisxin commented Aug 15, 2023

I have modified the containerd CRI code and built a version of containerd locally. May I know if there's a way tell KIND to use my local containerd when I run kind build node-image? Thanks in advance!

++++++++++++++++++++++++++++++++++++
UPDATE
managed to achieve this by

  1. modifying the Dockerfile for base image and build it using make quick locally
  2. pass it to --base-image flag in cmd kind node-image --base-image=gcr.io/k8s-staging-kind/base:v20230815-80a64d96-dirty

@tommazzo89
Copy link
Author

Hi @BenTheElder,
I see. I think in that case it's probably easier if I prepare a small VM image with everything set up. Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support Categorizes issue or PR as a support question.
Projects
None yet
Development

No branches or pull requests

3 participants