-
Notifications
You must be signed in to change notification settings - Fork 24
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
Unable to create a cluster on a PVE node with sufficient memory #71
Comments
Did you set the Variable MEMORY_MIB ? |
I tried setting the MEMORY_MIB variable as well as commenting out the MEMORY_MIB variable, and both methods resulted in an error with allocatable memory being 0. |
for _, vm := range vms {
// Ignore VM Templates, as they can't be started.
if vm.Template {
continue
}
if reservableMemory < vm.MaxMem {
reservableMemory = 0
} else {
reservableMemory -= vm.MaxMem
}
} I think it should be an issue with the code above because there are already some virtual machines on my PVE node, and the total amount of memory set for these virtual machines has exceeded the total memory of the PVE node. |
Try to add Please read more about this here node-over--underprovisioning |
Thank you, I'll take a look. |
I added apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1
kind: ProxmoxCluster
metadata:
name: proxmox-quickstart
namespace: default
spec:
schedulerHints:
memoryAdjustment: 0 But I got an error: Error from server (BadRequest): error when creating "cluster.yaml": ProxmoxCluster in version "v1alpha1" cannot be handled as a ProxmoxCluster: strict decoding error: unknown field "spec.schedulerHints"`. I found that the The configuration file called by |
you're right, This feature is not yet released, |
Thank you for your kind help, looking forward to the next release. |
v0.2.0 is now released |
@chengleqi did it work for you |
Hi @mcbenjemaa, I had the same error and I was able to fix it by upgrading to v0.2.0 and using this conf too :
Thanks 👌 |
You should upgrade to latest version, |
Try clusterctl init --ipam in-cluster --infrastructure proxmox:v0.4.0 Or v0.3.0 Both should work. |
Is this still an issue with v0.4.0? |
Hu @wikkyk , generated:
Adding manually:
Result:
|
@pasettifabio We've had #47 since CAPMOX v0.2.0. Does it still not work if you follow https://github.com/ionos-cloud/cluster-api-provider-proxmox/blob/main/docs/advanced-setups.md#node-over--underprovisioning ? |
What steps did you take and what happened:
I followed the quickstart guide step by step, used the Proxmox VE builder to successfully create a PVE template, then configured
~/.cluster-api/clusterctl.yaml
, and finally I used the following command to create the cluster:clusterctl generate cluster proxmox-quickstart \ --infrastructure proxmox \ --kubernetes-version v1.27.8 \ --control-plane-machine-count 1 \ --worker-machine-count 3 > cluster.yaml kubectl apply -f cluster.yaml
Then I received an error message:
What did you expect to happen:
Successfully created the cluster.
Anything else you would like to add:
#36 (comment)
Environment:
kubectl version
):/etc/os-release
): Ubuntu 22.04The text was updated successfully, but these errors were encountered: