diff --git a/environments/.DS_Store b/environments/.DS_Store new file mode 100644 index 00000000..00ee2f41 Binary files /dev/null and b/environments/.DS_Store differ diff --git a/environments/production/environment.yaml b/environments/production/environment.yaml new file mode 100644 index 00000000..12618d21 --- /dev/null +++ b/environments/production/environment.yaml @@ -0,0 +1,51 @@ +version: 1.0 +app: + # build id to deploy + # version: 1.0-SNAPSHOT-20230716015630 + # number of instances + instances: + # q: consider availability zones? + + # 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 + # q: what's the overall limit? + max: 14 + resources: + # max cpu, defaults to 1 cpu limit, half of that for min, min >= 1 + # q: what's the overall limit? + # q: do we support fractions? + cpu: 1 + # memory limit is based on cpu value: 1:3 memory ratio, e.g. 1 cpu == 3 gb + # ephemeral disk limit will be set to 1GB + # List of environment variables that set for the application + # Liberty encrypted values are supported only if referenced in server.xml + env: + - name: JVM_ARGS # q: make that as a top level 'jvmArguments' property? + value: "-DenvironmentType=stage" + - name: MY_ENV + value: "10" + # List of variables that can be referenced in server.xml + # Liberty encrypted values are supported + variables: + - name: io_openliberty_sample_system_inMaintenance + value: "false" + - name: discoveryEndpoint + value: "https://cognito-idp.us-east-1.amazonaws.com/us-east-1_eksr97OJU/.well-known/openid-configuration" + - name: clientId + value: 7rgjkvbjl487r2i1bvialvj2f4 + - name: clientSecret + value: "{aes}AIUxkkmTE73hJrAj3oN5OMYQnC9j3NWNJNTXXAchJ97qyrr7MHYMmn1NEtxgHXFqmYp8VNEAYhB5hJS8voLsRYyfA/7GpDdznGs/DtYEqzlw" + # cloudwatch for metrics + metrics: + enabled: false + cloudwatch: + arn: arn:aws:logs:region:account-id:destination:destination_name + metrics: + - a + - b + - c + version: "8a1f5fe6-4cc3-4d26-b00e-98d7a37da4c3" +# probes +# dynamic scaling +# scaling to 0 diff --git a/environments/staging/environment.yaml b/environments/staging/environment.yaml index 768d4ccf..4c30568f 100644 --- a/environments/staging/environment.yaml +++ b/environments/staging/environment.yaml @@ -4,7 +4,7 @@ app: # version: 1.0-SNAPSHOT-20230716015630 # number of instances instances: - # q: consider availability zones? + # q: consider availability zones? # min number of instances. can be 0 for scale to 0. default to 1. min: 1 @@ -17,14 +17,14 @@ app: # q: do we support fractions? cpu: 1 # memory limit is based on cpu value: 1:3 memory ratio, e.g. 1 cpu == 3 gb - # ephemeral disk limit will be set to 1GB + # ephemeral disk limit will be set to 1GB # List of environment variables that set for the application # Liberty encrypted values are supported only if referenced in server.xml env: - name: JVM_ARGS # q: make that as a top level 'jvmArguments' property? value: "-DenvironmentType=stage" - name: MY_ENV - value: "1" + value: "2" # List of variables that can be referenced in server.xml # Liberty encrypted values are supported variables: