-
Notifications
You must be signed in to change notification settings - Fork 11
/
radixconfig.yaml
88 lines (85 loc) · 2.49 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
apiVersion: radix.equinor.com/v1
kind: RadixApplication
metadata:
name: template-fastapi-react
spec:
environments:
- name: prod
build:
from: main
- name: test
build:
from: main
components:
- name: api
image: ghcr.io/equinor/template-fastapi-react/api:{imageTagName}
alwaysPullImageOnDeploy: true
resources:
requests:
memory: "256Mi"
cpu: "100m"
limits:
memory: "4Gi"
cpu: "4000m"
environmentConfig:
- environment: prod
imageTagName: production
horizontalScaling:
minReplicas: 1
maxReplicas: 4
- environment: test
imageTagName: latest
horizontalScaling:
minReplicas: 1
maxReplicas: 2
secrets:
- SECRET_KEY
- MONGODB_PASSWORD
- APPINSIGHTS_CONSTRING
variables:
LOGGING_LEVEL: "debug"
AUTH_ENABLED: "True"
ENVIRONMENT: production
OAUTH_WELL_KNOWN: https://login.microsoftonline.com/3aa4a235-b6e2-48d5-9195-7fcf05b459b0/v2.0/.well-known/openid-configuration
OAUTH_TOKEN_ENDPOINT: https://login.microsoftonline.com/3aa4a235-b6e2-48d5-9195-7fcf05b459b0/oauth2/v2.0/token
OAUTH_AUTH_ENDPOINT: https://login.microsoftonline.com/3aa4a235-b6e2-48d5-9195-7fcf05b459b0/oauth2/v2.0/authorize
OAUTH_CLIENT_ID: 4a761bec-628d-4c4b-860a-4903cbecc963
OAUTH_AUDIENCE: api://4a761bec-628d-4c4b-860a-4903cbecc963
OAUTH_AUTH_SCOPE: api://4a761bec-628d-4c4b-860a-4903cbecc963/api
MONGODB_USERNAME: root
MONGODB_DATABASE: test
ports:
- name: rest
port: 5000
publicPort: rest
- name: proxy
image: ghcr.io/equinor/template-fastapi-react/nginx:{imageTagName}
alwaysPullImageOnDeploy: true
environmentConfig:
- environment: prod
imageTagName: production
- environment: test
imageTagName: latest
variables:
AUTH_ENABLED: "True"
ports:
- name: nginx
port: 8080
publicPort: nginx
- name: db
image: bitnami/mongodb:5.0.12
alwaysPullImageOnDeploy: true
command: --auth --quiet
variables:
MONGODB_USERNAME: root
MONGODB_DATABASE: test
secrets:
- MONGODB_PASSWORD
- MONGODB_ROOT_PASSWORD
ports:
- name: dbport
port: 27017
publicPort: dbport
dnsAppAlias:
environment: prod
component: proxy