-
Notifications
You must be signed in to change notification settings - Fork 67
/
Copy pathenvironment.yaml
51 lines (50 loc) · 1.75 KB
/
environment.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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