diff --git a/service-provider-setup/README.md b/service-provider-setup/README.md index 6b898cb..6a9cc78 100644 --- a/service-provider-setup/README.md +++ b/service-provider-setup/README.md @@ -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 ``` diff --git a/service-provider-setup/templates/specs/webapp-deployer.spec.j2 b/service-provider-setup/templates/specs/webapp-deployer.spec.j2 index a0a2062..71e7f3a 100644 --- a/service-provider-setup/templates/specs/webapp-deployer.spec.j2 +++ b/service-provider-setup/templates/specs/webapp-deployer.spec.j2 @@ -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 diff --git a/service-provider-setup/vars/webapp-vars.example.yml b/service-provider-setup/vars/webapp-vars.example.yml index 04aa3fb..491192c 100644 --- a/service-provider-setup/vars/webapp-vars.example.yml +++ b/service-provider-setup/vars/webapp-vars.example.yml @@ -3,4 +3,6 @@ BOND_ID: "{{ BOND_ID }}" authority_name: "" cpu_reservation: "" memory_reservation: "" +cpu_limit: "6" +memory_limit: "8G" deployer_gpg_passphrase: ""