-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapi.yml
More file actions
46 lines (45 loc) · 922 Bytes
/
api.yml
File metadata and controls
46 lines (45 loc) · 922 Bytes
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
apiVersion: v1
kind: Service
metadata:
name: fastapi-api
spec:
selector:
app: fastapi-api
ports:
- protocol: "TCP"
port: 80
targetPort: 80
type: LoadBalancer
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: fastapi-api
labels:
app: fastapi-api
spec:
replicas: 1
selector:
matchLabels:
app: fastapi-api
template:
metadata:
labels:
app: fastapi-api
spec:
containers:
- name: fastapi-api
image: guilhermeia/fastapi-api:v1
ports:
- containerPort: 80
imagePullPolicy: IfNotPresent
resources:
# You must specify requests for CPU to autoscale
# based on CPU utilization
requests:
cpu: "250m"
- env:
- name: X_TOKEN
value: $X_TOKEN
- name: SENTRY_URI
value: $SENTRY_URI