Add variables for cpu and memory limit

This commit is contained in:
Adw8 2024-10-07 14:25:07 +05:30
parent 5eea5feb35
commit 1121234baf
3 changed files with 6 additions and 2 deletions

View File

@ -117,6 +117,8 @@ To get started, follow the [installation](../README.md#installation) guide to se
authority_name: "" # eg: my-org-name
cpu_reservation: "" # Minimum number of cpu cores to be used, eg: 2
memory_reservation: "" # Minimum amount of memory in GB to be used, eg: 4G
cpu_limit: "" # Maximum number of cpu cores to be used, eg: 6
memory_limit: "" # Maximum amount of memory in GB to be used, eg: 8G
deployer_gpg_passphrase: "" # passphrase for creating GPG key used by webapp-deployer, eg: SECRET
```

View File

@ -28,8 +28,8 @@ resources:
cpus: {{ cpu_reservation }}
memory: {{ memory_reservation }}
limits:
cpus: 6
memory: 16G
cpus: {{ cpu_limit }}
memory: {{ memory_limit }}
volumes:
reservations:
storage: 200G

View File

@ -3,4 +3,6 @@ BOND_ID: "{{ BOND_ID }}"
authority_name: ""
cpu_reservation: ""
memory_reservation: ""
cpu_limit: "6"
memory_limit: "8G"
deployer_gpg_passphrase: ""