chore(nix-kubernetes): allow configuring cpu and memory request for template

This commit is contained in:
technofab 2024-05-08 13:36:59 +02:00
parent 70601ffbd0
commit 1392cb7d0c
2 changed files with 12 additions and 3 deletions

View file

@ -84,9 +84,8 @@
];
resources = {
requests = {
# TODO: allow configuring this via variables (template wide)
cpu = "250m";
memory = "512Mi";
cpu = "\${var.cpu_request}";
memory = "\${var.memory_request}";
};
limits = {
cpu = "\${data.coder_parameter.cpu.value}";