-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathradixconfig.yaml
More file actions
110 lines (107 loc) · 3 KB
/
radixconfig.yaml
File metadata and controls
110 lines (107 loc) · 3 KB
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
apiVersion: radix.equinor.com/v1
kind: RadixApplication
metadata:
name: template-fastapi-react
spec:
build:
useBuildKit: true
useBuildCache: true
environments:
- name: prod
- name: staging
build:
from: main
- name: dev
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: latest
horizontalScaling:
minReplicas: 1
maxReplicas: 4
- environment: staging
imageTagName: latest
horizontalScaling:
minReplicas: 1
maxReplicas: 2
- environment: dev
imageTagName: latest
horizontalScaling:
minReplicas: 1
maxReplicas: 1
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
readOnlyFileSystem: true
runAsUser: 65532 # nginx
volumeMounts:
- name: nginx-cache
path: /var/cache/nginx
emptyDir:
sizeLimit: 10M
- name: nginx-pid
path: /run/nginx
emptyDir:
sizeLimit: 1M
environmentConfig:
- environment: prod
imageTagName: latest
- environment: staging
imageTagName: latest
- environment: dev
imageTagName: latest
ports:
- name: nginx
port: 8080
publicPort: nginx
- name: db
image: mongo:7.0.30
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