From 775c9be08c970bd2b8c08a1238e2082cd8f4ccdd Mon Sep 17 00:00:00 2001 From: lavjain1930 Date: Tue, 17 Dec 2024 12:43:01 +0530 Subject: [PATCH 1/2] updated stging --- environments/production/environment.yaml | 29 ++++++++++++++++++++++++ environments/staging/environment.yaml | 2 +- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 environments/production/environment.yaml diff --git a/environments/production/environment.yaml b/environments/production/environment.yaml new file mode 100644 index 0000000..a980c82 --- /dev/null +++ b/environments/production/environment.yaml @@ -0,0 +1,29 @@ +# +# Configuration for staging environment +# +version: 1.0 +app: + # build id to deploy. if 'version' is commented out, the application is not deployed + version: "" + + # number of instances + instances: + # min number of instances. can be 0 for scale to 0. default to 1. + min: 1 + + # max number of instances. defaults to 1 if min == 0, otherwise defaults to min + max: 1 + + resources: + # max cpu. memory limit is based on cpu value: 1:3 memory ratio, e.g. 1 cpu == 3 gb + cpu: 1 + + # List of environment variables that are set for the application + env: + - name: JVM_ARGS + value: "-Xms=1024m" + + # List of variables that can be referenced in the server.xml + variables: + - name: io_openliberty_sample_system_inMaintenance + value: "false" diff --git a/environments/staging/environment.yaml b/environments/staging/environment.yaml index bc79e93..79b9413 100644 --- a/environments/staging/environment.yaml +++ b/environments/staging/environment.yaml @@ -19,7 +19,7 @@ app: resources: # max cpu. memory limit is based on cpu value: 1:3 memory ratio, e.g. 1 cpu == 3 gb - cpu: 1 + cpu: 2 # List of environment variables that are set for the application env: From fb72469c413cd64108b0107bb4e7d2ed1af75b0c Mon Sep 17 00:00:00 2001 From: lavjain1930 Date: Tue, 17 Dec 2024 12:59:16 +0530 Subject: [PATCH 2/2] updated version --- environments/staging/environment.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/environments/staging/environment.yaml b/environments/staging/environment.yaml index 79b9413..f700dda 100644 --- a/environments/staging/environment.yaml +++ b/environments/staging/environment.yaml @@ -4,7 +4,7 @@ version: 1.0 app: # build id to deploy. if 'version' is commented out, the application is not deployed - version: "" + version: "latest version" # configure endpoints endpoints: public @@ -19,7 +19,7 @@ app: resources: # max cpu. memory limit is based on cpu value: 1:3 memory ratio, e.g. 1 cpu == 3 gb - cpu: 2 + cpu: 3 # List of environment variables that are set for the application env: