aws / aws-nitro-enclaves-with-k8s

Tools and guides for using AWS Nitro Enclaves with Amazon EKS.
Apache License 2.0
32 stars 11 forks source link

When I apply the yaml file, it show error below. I need to login into worker node(edit new launch plate version and add a key first) and modify this `cpu-count` to 4 #21

Open haozhiyu opened 1 year ago

haozhiyu commented 1 year ago

[ E22 ] Insufficient CPUs available in the pool. User provided cpu-count is 2, which is more than the configured CPU pool size. You can increase the CPU pool size by editing the cpu_count value from '/etc/nitro_enclaves/allocator.yaml' and then enable the nitro-enclaves-allocator.service.

andraprs commented 1 year ago

[ E22 ] Insufficient CPUs available in the pool. User provided cpu-count is 2, which is more than the configured CPU pool size. You can increase the CPU pool size by editing the cpu_count value from '/etc/nitro_enclaves/allocator.yaml' and then enable the nitro-enclaves-allocator.service.

You can update the value of the "node_enclave_cpu_limit" field from the "settings" JSON file [1]. The current value of "node_enclave_cpu_limit" is 2, but it can be updated to 4, for example. This way, it will match the setup you would like for "cpu_count" [2].

Thank you.

[1] https://github.com/aws/aws-nitro-enclaves-with-k8s/blob/main/settings.json [2] https://github.com/aws/aws-nitro-enclaves-cli/blob/main/bootstrap/allocator.yaml

haozhiyu commented 1 year ago

Should we modify this default value to 4 in this repo? Otherwise others will run into same problem I think

lanlin commented 1 year ago

I have the same error here, even though i had set the cpu-count to 4 at the beginning, it still complains about Insufficient CPUs available in the pool

[ E22 ] Insufficient CPUs available in the pool. User provided `cpu-count` is 2, which is more than the configured CPU pool size.
You can increase the CPU pool size by editing the `cpu_count` value from '/etc/nitro_enclaves/allocator.yaml' and then enable the nitro-enclaves-allocator.service.