-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaca.yaml
More file actions
70 lines (70 loc) · 1.92 KB
/
Copy pathaca.yaml
File metadata and controls
70 lines (70 loc) · 1.92 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
# Azure Container Apps deployment config
# Deploy: az containerapp create --name sql-fs-api --resource-group <RG> --yaml aca.yaml
properties:
managedEnvironmentId: /subscriptions/<SUB_ID>/resourceGroups/<RG>/providers/Microsoft.App/managedEnvironments/<ENV>
configuration:
ingress:
external: true
targetPort: 8080
transport: http
allowInsecure: false
registries:
- server: ghcr.io
username: <GITHUB_USERNAME>
passwordSecretRef: ghcr-token
secrets:
- name: database-url
value: "<POOLER_URL>"
- name: database-direct-url
value: "<DIRECT_URL>"
- name: auth-secret
value: "<AUTH_SECRET>"
- name: redis-url
value: "<REDIS_URL>"
- name: ghcr-token
value: "<GITHUB_PAT>"
template:
containers:
- name: api
image: ghcr.io/<GITHUB_USERNAME>/sql-fs-api:latest
resources:
cpu: 1.0
memory: 2Gi
env:
- name: FS_BACKEND
value: postgres
- name: DATABASE_URL
secretRef: database-url
- name: DATABASE_DIRECT_URL
secretRef: database-direct-url
- name: AUTH_SECRET
secretRef: auth-secret
- name: REDIS_URL
secretRef: redis-url
- name: PORT
value: "8080"
probes:
- type: Liveness
httpGet:
path: /healthz
port: 8080
periodSeconds: 15
- type: Readiness
httpGet:
path: /readyz
port: 8080
periodSeconds: 10
- type: Startup
httpGet:
path: /readyz
port: 8080
failureThreshold: 30
periodSeconds: 2
scale:
minReplicas: 1
maxReplicas: 10
rules:
- name: http-rule
http:
metadata:
concurrentRequests: "50"