-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathradixconfig.yaml
174 lines (171 loc) · 6.93 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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
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 #TODO 1073: Remove this once all environments are using federated credentials
environmentConfig:
# Development environment
- environment: dev
identity:
azure:
clientId: 943e3f0f-075e-41e7-a279-41f8374f6de6 # Managed identity: pcs-pres-dev-mi
imageTagName: latest
variables:
Application__AppConfigurationUrl: https://pcs-pres-non-prod-config.azconfig.io
Application__ObjectId: e4a7f1b1-da31-40ac-9089-d00afc2f1fa7 # Enterprise application: ProCoSys - Preservation Api - Dev
Application__UseAzureAppConfiguration: 'true'
AzureAd__ClientId: 67b2f053-30bf-4ffc-9206-ef57f631efcb # App registration: ProCoSys - Preservation Api - Dev
AzureAd__ClientCredentials__0__SourceType: SignedAssertionFilePath
ASPNETCORE_ENVIRONMENT: 'Development'
BlobStorage__AccountName: pcsdevsa
ConnectionStrings__PreservationContext: Server=pcs-dev-sqlserver.database.windows.net;Authentication=Active Directory Workload Identity;Encrypt=True;Database=pcs-pres-dev-db
LEADERELECTOR_SERVICE: http://leader-elector:3003
MainApi__BaseAddress: 'https://pcs-main-api-dev.azurewebsites.net/api/'
MainApi__MainApiScope: 'api://dd38f169-bccf-4d0e-a4ad-d830893cfa75/.default'
ServiceBus__Enable: 'true'
ServiceBus__Namespace: sb-pcs-dev
Swagger__Audience: 'api://67b2f053-30bf-4ffc-9206-ef57f631efcb'
Swagger__ClientId: '97505617-302f-409a-a37e-7ca859b5b56c'
UseAzureAppConfiguration: 'true' #TODO 1064: Remove this once all environments are using Application__UseAzureAppConfiguration
monitoring: false
resources:
requests:
memory: '256Mi'
cpu: '100m'
limits:
memory: '256Mi'
cpu: '250m'
# Test environment
- environment: test
identity:
azure:
clientId: 5b113da5-2d1e-4dc7-97fc-d5d97f90f934 # Managed identity: pcs-pres-test-mi
variables:
Application__AppConfigurationUrl: https://pcs-pres-non-prod-config.azconfig.io
Application__ObjectId: a0ff0648-043e-49fd-ac69-5a8d9af932c6 # Enterprise application: ProCoSys - Preservation Api - Test
Application__UseAzureAppConfiguration: 'true'
AzureAd__ClientId: f23bcde6-d6a4-42d5-94fa-96b184968cf7 # App registration: ProCoSys - Preservation Api - Test
AzureAd__ClientCredentials__0__SourceType: SignedAssertionFilePath
ASPNETCORE_ENVIRONMENT: 'Test'
ConnectionStrings__PreservationContext: Server=pcs-test-sqlserver.database.windows.net;Authentication=Active Directory Workload Identity;Encrypt=True;Database=pcs-pres-test-db
LEADERELECTOR_SERVICE: http://leader-elector:3003
BlobStorage__AccountName: pcstestsa
MainApi__BaseAddress: 'https://procosyswebapitest.equinor.com/api/'
MainApi__MainApiScope: 'api://2d0ed80f-3013-422d-b8bd-2b8ac70b2ce1/.default'
ServiceBus__Enable: 'true'
ServiceBus__Namespace: sb-pcs-test
Swagger__Audience: 'api://f23bcde6-d6a4-42d5-94fa-96b184968cf7'
Swagger__ClientId: '3c391792-dbea-446e-bb2c-a7bda2fe40dd'
UseAzureAppConfiguration: 'true' #TODO 1064: Remove this once all environments are using Application__UseAzureAppConfiguration
monitoring: false
replicas: 2
resources:
requests:
memory: '350Mi' #TODO 1064: Memory usage is at 99% usage when set to 256. If it also goes to 99% with 350, we have a leak.
cpu: '100m'
limits:
memory: '350Mi' #TODO 1064: Memory usage is at 99% usage when set to 256. If it also goes to 99% with 350, we have a leak.
cpu: '250m'
# Prod environment
- environment: prod
identity:
azure:
clientId: 26102272-d98c-4d00-846e-7eace9f49738 # Managed identity: pcs-pres-prod-mi
variables:
Application__AppConfigurationUrl: https://pcs-pres-prod-config.azconfig.io
Application__ObjectId: d28c8b2a-2a2a-4fc1-97c6-49c3e601a3e3 # Enterprise application: ProCoSys - Preservation Api - Prod
Application__UseAzureAppConfiguration: 'true'
AzureAd__ClientId: 1eb50c54-e897-4216-93d0-6ca86b0cf681 # App registration: ProCoSys - Preservation Api - Prod
AzureAd__ClientCredentials__0__SourceType: SignedAssertionFilePath
ASPNETCORE_ENVIRONMENT: 'Prod'
BlobStorage__AccountName: pcsprodsa
ConnectionStrings__PreservationContext: Server=pcs-prod-sqlserver.database.windows.net;Authentication=Active Directory Workload Identity;Encrypt=True;Database=pcs-pres-prod-db
LEADERELECTOR_SERVICE: http://leader-elector:3003
MainApi__BaseAddress: 'https://procosyswebapi.equinor.com/api/'
MainApi__MainApiScope: 'api://47641c40-0135-459b-8ab4-459e68dc8d08/.default'
ServiceBus__Enable: 'true'
ServiceBus__Namespace: sb-pcs-prod
Swagger__Audience: 'api://1eb50c54-e897-4216-93d0-6ca86b0cf681'
Swagger__ClientId: '42f01d41-df15-426f-8332-bf58d7274964'
UseAzureAppConfiguration: 'true' #TODO 1064: Remove this once all environments are using Application__UseAzureAppConfiguration
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]