mirror of
https://gitlab.com/TECHNOFAB/coder-templates.git
synced 2025-12-11 17:50:06 +01:00
chore(nix-kubernetes): allow configuring cpu and memory request for template
This commit is contained in:
parent
70601ffbd0
commit
1392cb7d0c
2 changed files with 12 additions and 3 deletions
|
|
@ -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}";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue