-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathradixconfig.yaml
135 lines (132 loc) · 3.14 KB
/
radixconfig.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
apiVersion: radix.equinor.com/v1
kind: RadixApplication
metadata:
name: procosys-preservation-api
spec:
environments:
- name: dev
- name: test
- name: prod
components:
# ---------
# Backend
#----------
- name: backend
image: procosys.azurecr.io/preservation/api:{imageTagName}
ports:
- name: http
port: 5000
publicPort: http
secrets:
- CONNECTIONSTRINGS__APPCONFIG
environmentConfig:
# Development environment
- environment: dev
identity:
azure:
clientId: 67b2f053-30bf-4ffc-9206-ef57f631efcb
imageTagName: latest
variables:
ASPNETCORE_ENVIRONMENT: 'Development'
UseAzureAppConfiguration: 'true'
LEADERELECTOR_SERVICE: http://leader-elector:3003
monitoring: false
resources:
requests:
memory: '256Mi'
cpu: '100m'
limits:
memory: '256Mi'
cpu: '250m'
# Test environment
- environment: test
identity:
azure:
clientId: f23bcde6-d6a4-42d5-94fa-96b184968cf7
variables:
ASPNETCORE_ENVIRONMENT: 'Test'
UseAzureAppConfiguration: 'true'
LEADERELECTOR_SERVICE: http://leader-elector:3003
monitoring: false
replicas: 2
resources:
requests:
memory: '256Mi'
cpu: '100m'
limits:
memory: '256Mi'
cpu: '250m'
# Prod environment
- environment: prod
identity:
azure:
clientId: 1eb50c54-e897-4216-93d0-6ca86b0cf681
variables:
ASPNETCORE_ENVIRONMENT: 'Prod'
UseAzureAppConfiguration: 'true'
LEADERELECTOR_SERVICE: http://leader-elector:3003
monitoring: false
replicas: 3
resources:
requests:
memory: '750Mi'
cpu: '200m'
limits:
memory: '750Mi'
cpu: '500m'
#--------------------
# LeaderElector
#--------------------
- name: leader-elector
image: procosys.azurecr.io/leader-elector:{imageTagName}
ports:
- name: http
port: 3003
environmentConfig:
# Development environment
- environment: dev
imageTagName: latest
variables:
LEASE_TIME: 5
monitoring: false
replicas: 1
resources:
requests:
memory: '128Mi'
cpu: '100m'
limits:
memory: '128Mi'
cpu: '100m'
# Test environment
- environment: test
variables:
LEASE_TIME: 5
monitoring: false
replicas: 1
resources:
requests:
memory: '128Mi'
cpu: '100m'
limits:
memory: '128Mi'
cpu: '100m'
# Prod environment
- environment: prod
variables:
LEASE_TIME: 5
replicas: 1
resources:
requests:
memory: '128Mi'
cpu: '100m'
limits:
memory: '128Mi'
cpu: '100m'
monitoring: false
#--------------------------------
# External docker image registry
#--------------------------------
privateImageHubs:
procosys.azurecr.io:
username: 9d3898e4-730f-4fb5-8ddf-a5de51537896
email: [email protected]