-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprefect-agent.deployment.yaml
63 lines (63 loc) · 1.78 KB
/
prefect-agent.deployment.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
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: prefect-agent
name: prefect-agent
namespace: ${BAKERY_NAMESPACE}
spec:
replicas: 1
selector:
matchLabels:
app: prefect-agent
template:
metadata:
labels:
app: prefect-agent
spec:
containers:
- args: ["prefect", "agent", "kubernetes", "start"]
resources:
requests:
memory: "256Mi"
cpu: "100m"
limits:
memory: "512Mi"
cpu: "200m"
volumeMounts:
- name: google-credentials
mountPath: /opt
env:
- name: PREFECT__CLOUD__AGENT__AUTH_TOKEN
value: ${PREFECT__CLOUD__AGENT__AUTH_TOKEN}
- name: PREFECT__CLOUD__API
value: https://api.prefect.io
- name: NAMESPACE
value: ${BAKERY_NAMESPACE}
- name: PREFECT__CLOUD__AGENT__LABELS
value: '${PREFECT__CLOUD__AGENT__LABELS}'
- name: SERVICE_ACCOUNT_NAME
value: 'default'
- name: PREFECT__BACKEND
value: cloud
- name: PREFECT__CLOUD__AGENT__AGENT_ADDRESS
value: http://:8080
- name: DELETE_FINISHED_JOBS
value: 'False'
- name: GOOGLE_APPLICATION_CREDENTIALS
value: "/opt/storage_key.json"
image: ${BAKERY_IMAGE}
imagePullPolicy: Always
livenessProbe:
failureThreshold: 2
httpGet:
path: /api/health
port: 8080
initialDelaySeconds: 40
periodSeconds: 40
name: agent
volumes:
- name: google-credentials
secret:
secretName: google-credentials