-
Notifications
You must be signed in to change notification settings - Fork 0
/
radixconfig.yaml
225 lines (223 loc) · 5.81 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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
# yaml-language-server: $schema=file:///home/nst/go/src/github.com/equinor/radix-operator/json-schema/radixapplication.json
apiVersion: radix.equinor.com/v1
kind: RadixApplication
metadata:
name: radix-job-demo
spec:
dnsAppAlias:
environment: qa
component: server
build:
useBuildKit: true
useBuildCache: false
secrets:
- SECRET1
environments:
- name: qa
build:
from: main
- name: prod
build:
from: release
jobs:
- name: "compute"
src: "compute"
schedulerPort: 8080
timeLimitSeconds: 3600
backoffLimit: 0
runtime:
architecture: amd64
notifications:
webhook: http://server:6001/api/notification/compute1
failurePolicy:
rules:
- action: FailJob
onExitCodes:
operator: In
values: [1]
- action: Count
onExitCodes:
operator: In
values: [10,11]
- action: Ignore
onExitCodes:
operator: In
values: [20,21,22]
readOnlyFileSystem: true
resources:
requests:
cpu: 50m
memory: 100Mi
ports:
- name: http
port: 9999
- name: metrics2
port: 9090
monitoringConfig:
portName: metrics2
payload:
path: "/compute/args"
identity:
azure:
clientId: 5e48ca1f-a2bf-4dec-b96d-bbf8ce69f9f6
variables:
COMPUTE_CONFIG: "/compute/args/payload"
CALLBACK_ON_COMPLETE_URL: "http://server:5000"
SQL_SERVER_NAME: "fed-test.database.windows.net"
SQL_DATABASE_NAME: "fed-test"
environmentConfig:
- environment: prod
identity:
azure:
clientId: b96d264b-7053-4465-a4a7-32be5b0fec49
- environment: qa
failurePolicy:
rules:
- action: FailJob
onExitCodes:
operator: In
values: [42]
- action: Count
onExitCodes:
operator: In
values: [1, 2, 3]
- action: Ignore
onExitCodes:
operator: In
values: [143]
monitoring: true
backoffLimit: 0
readOnlyFileSystem: true
- name: "compute1"
src: "compute"
schedulerPort: 8080
timeLimitSeconds: 3600
backoffLimit: 0
runtime:
architecture: amd64
notifications:
webhook: http://server:6001/api/notification/compute1
readOnlyFileSystem: true
ports:
- name: http
port: 9999
- name: metrics2
port: 9090
monitoringConfig:
portName: metrics2
payload:
path: "/compute/args"
identity:
azure:
clientId: 5e48ca1f-a2bf-4dec-b96d-bbf8ce69f9f6
variables:
COMPUTE_CONFIG: "/compute/args/payload"
CALLBACK_ON_COMPLETE_URL: "http://server:5000"
SQL_SERVER_NAME: "fed-test.database.windows.net"
SQL_DATABASE_NAME: "fed-test"
environmentConfig:
- environment: qa
monitoring: true
backoffLimit: 0
- environment: prod
identity:
azure:
clientId: b96d264b-7053-4465-a4a7-32be5b0fec49
- name: "compute2"
src: "compute"
schedulerPort: 8080
timeLimitSeconds: 300
backoffLimit: 0
runtime:
architecture: amd64
payload:
path: "/compute/args"
identity:
azure:
clientId: 5e48ca1f-a2bf-4dec-b96d-bbf8ce69f9f6
variables:
COMPUTE_CONFIG: "/compute/args/payload"
CALLBACK_ON_COMPLETE_URL: "http://server:5000"
SQL_SERVER_NAME: "fed-test.database.windows.net"
SQL_DATABASE_NAME: "fed-test"
components:
- name: echo
src: echoweb
dockerfileName: Dockerfile
ports:
- name: http
port: 8000
publicPort: http
runtime:
architecture: amd64
readOnlyFileSystem: true
resources:
requests:
cpu: 10m
memory: 20Mi
limits:
cpu: 10m
memory: 20Mi
- name: "server"
src: src
dockerfileName: Dockerfile.frontend
ports:
- name: http
port: 5000
- name: notif1
port: 6001
- name: notif2
port: 6002
publicPort: http
readOnlyFileSystem: true
runtime:
architecture: amd64
variables:
ASPNETCORE_URLS: "http://*:5000;http://*:6001;http://*:6002"
JOB_SCHEDULER: "http://compute:8080"
JOB_SCHEDULER2: "http://compute2:8080"
COMPUTE_IMAGE_PATH: "/app/computeimages"
DOTNET_EnableDiagnostics: "0"
network:
ingress:
public:
proxyReadTimeout: 30
proxySendTimeout: 30
identity:
azure:
clientId: 5e48ca1f-a2bf-4dec-b96d-bbf8ce69f9f6
authentication:
oauth2:
clientId: 5e48ca1f-a2bf-4dec-b96d-bbf8ce69f9f6
scope: openid email profile offline_access
sessionStoreType: redis
redisStore:
connectionUrl: redis://redis:6379
resources:
requests:
memory: "200M"
cpu: "50m"
limits:
memory: "500M"
volumeMounts:
- name: computeimages
path: /app/computeimages
emptyDir:
sizeLimit: 50M
- name: redis
runtime:
architecture: amd64
image: bitnami/redis:{imageTagName}
imageTagName: "7.4.1"
alwaysPullImageOnDeploy: true
ports:
- name: redis
port: 6379
secrets:
- REDIS_PASSWORD
resources:
requests:
memory: "100M"
cpu: "50m"
limits:
memory: "200M"