-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.yaml
50 lines (50 loc) · 1.27 KB
/
app.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
apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: java21
spec:
components:
- name: java21-2
type: artifact
properties:
jarFileName: 5542df7e-5cca-4dbc-829f-491a28fb9c40
javaVersion: "21"
storageAccountSecret: storage-secret
port: 8080
javaagent: "-javaagent:/app-insights/agents/applicationinsights-agent.jar"
traits:
- type: ingress-1-20
properties:
domain: java21-2.local
http:
"/": 8080
- type: scaler
properties:
replicas: 1
- type: monitoring
properties:
type: ApplicationInsights
monitoringSettingsSecret: monitoringsettings-secret
- name: java21-3
type: artifact
properties:
jarFileName: 569d16fa-baaa-4cb6-89c7-d9f0bd3fde35
javaVersion: "21"
storageAccountSecret: storage-secret
port: 8080
javaagent: ""
traits:
- type: ingress-1-20
properties:
domain: java21-3.local
http:
"/": 8080
- type: scaler
properties:
replicas: 2
policies:
- name: java21
type: blue-green
properties:
active: java21-3
port: 8080