-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeployment.yaml
More file actions
47 lines (47 loc) · 1.1 KB
/
deployment.yaml
File metadata and controls
47 lines (47 loc) · 1.1 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
apiVersion: apps/v1
kind: Deployment
metadata:
name: connect-python
spec:
progressDeadlineSeconds: 600
selector:
matchLabels:
app: connect-python
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
app: connect-python
spec:
containers:
- name: connect-python
command:
- "uv"
- "run"
- "hypercorn"
- "main:app"
- "--bind"
- "0.0.0.0"
imagePullPolicy: Always
ports:
- containerPort: 8000
name: http2
protocol: TCP
resources:
limits:
cpu: "1"
memory: 512Mi
requests:
cpu: 800m
memory: 400Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
serviceAccountName: connect-python
terminationGracePeriodSeconds: 30