Skip to content

CPU restriction is not represented in the deployed clusterΒ #179

@engnatha

Description

@engnatha

Description

The documentation indicates that the number of cpus can be configured. When inspecting the docker container created, it seems this is not being respected.

Here's a simple resource example to reproduce

resource "minikube_cluster" "docker" {
  driver       = "docker"
  nodes        = 1
  cni          = "bridge"
  cpus         = 2
  memory       = "2GB"
  cluster_name = "test-cluster"
  addons = [
    "dashboard",
    "default-storageclass",
    "metrics-server",
    "storage-provisioner"
  ]
}

Once this is deployed, you can run docker inspect test-cluster -f '{{ .HostConfig.NanoCpus }}' and see that it is set to 0. Both docker stats and docker inspect test-cluster -f '{{ .HostConfig.Memory }}' is configured appropriately to 2GB.

Versions

Provider version: v0.3.10
Terraform: 1.8.4
OS: Ubuntu 22.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions