-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
how to set the container memory which launched by kind ? #3341
Comments
This is a dup of #2805 and #877 (comment) |
@aojea okay, thank you for your answer and solutions . but the #2805 and #877 (comment) , this topics are all about how to limiting the host resources, in my scenario , need more capcity, not to limit it. actually, the docker container launched by kind , just have 8Gi default Memory size , far away less than 64G of the host memory size, |
/close |
The amount of resources available to the docker desktop VM is controlled by the settings for that application, not kind. |
@BenTheElder thank you for your pretty answer and solutions, which is really pretty useful to me. Yes, It is indeed using Docker Desktop as the container engine on my mbp, Now, I found all I need to do is adjust the settings of the Docker Desktop Actually , I found the kinds docs (https://kind.sigs.k8s.io/docs/user/quick-start/, chapter Settings for Docker Desktop ) has already metioned it. thx so much again |
Hello, I need help, can someone help me ? thx so much
My CASE
Macbook M2 with 64GB of memory,
on this laptop, deployed a k8s cluster by the kind tool , using the following cmd,
kind create cluster --image=kindest/node:v1.27.2 --name=httpd
then, I obtained a k8s cluster named
httpd
which running in a docker containerhttpd-control-plane
then, execute the following command inside the
httpd-control-plane
container,cat /proc/meminfo |grep MemTotal
MemTotal: 8039756 kB
As shown above, the default container memory size is 8039756 kB, this will limit the maximum memory size of k8s node memory capacity to this size ( using the cmd
kubectl describe node
, k8s node memory capcity info )MY PROBLEM
How to set MemTotal size of the container
httpd-control-plane
? which can make the k8s node memory capacity to be large, such as 32g of memory capacity, in some experimental scenarios.is there have a yaml of config examples or solutions ? thx so much
The text was updated successfully, but these errors were encountered: