This repository has been archived by the owner on Oct 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 63
/
flyteadmin_config.yaml
215 lines (215 loc) · 5.5 KB
/
flyteadmin_config.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
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
# This is a sample configuration file.
# Real configuration when running inside K8s (local or otherwise) lives in a ConfigMap
# Look in the artifacts directory in the flyte repo for what's actually run
# https://github.com/lyft/flyte/blob/b47565c9998cde32b0b5f995981e3f3c990fa7cd/artifacts/flyteadmin.yaml#L72
server:
httpPort: 8088
grpcPort: 8089
grpcServerReflection: true
kube-config: /Users/ytong/.flyte/sandbox/kubeconfig
security:
secure: false
useAuth: false
allowCors: true
allowedOrigins:
# Accepting all domains for Sandbox installation
- "*"
allowedHeaders:
- "Content-Type"
# Okta OIdC only
auth:
authorizedUris:
- https://localhost:8088
- http://flyteadmin:80
userAuth:
openId:
# Put the URL of the OpenID Connect provider.
baseUrl: https://dev-14186422.okta.com/oauth2/auskngnn7uBViQq6b5d6
scopes:
- profile
- openid
- offline_access # Uncomment if OIdC supports issuing refresh tokens.
# Replace with the client id created for Flyte.
clientId: 0oakkheteNjCMERst5d6
# Okta OIdC and OAuth2
#auth:
# authorizedUris:
# - https://localhost:8088
# - http://flyteadmin:80
# appAuth:
# authServerType: External
# userAuth:
# openId:
# # Put the URL of the OpenID Connect provider.
# baseUrl: https://dev-14186422.okta.com/oauth2/auskngnn7uBViQq6b5d6
# scopes:
# - profile
# - openid
# - offline_access # Uncomment if OIdC supports issuing refresh tokens.
# # Replace with the client id created for Flyte.
# clientId: 0oakkheteNjCMERst5d6
flyteadmin:
runScheduler: false
roleNameKey: "iam.amazonaws.com/role"
metricsScope: "flyte:"
profilerPort: 10254
testing:
host: "http://localhost:8088"
# This last must be in order! For example, a file path would be prefixed with metadata/admin/...
metadataStoragePrefix:
- "metadata"
- "admin"
useOffloadedWorkflowClosure: false
database:
postgres:
port: 30001
username: postgres
password: postgres
host: 127.0.0.1
dbname: flyte
options: "sslmode=disable"
scheduler:
eventScheduler:
scheme: local
region: "my-region"
scheduleRole: "arn:aws:iam::abc123:role/my-iam-role"
targetName: "arn:aws:sqs:my-region:abc123:my-queue"
scheduleNamePrefix: "flyte"
workflowExecutor:
scheme: local
local:
adminRateLimit:
tps: 100 # per sec how many requests to send to admin
burst: 10 # burst count of request to admin
region: "my-region"
scheduleQueueName: "won't-work-locally"
accountId: "abc123"
remoteData:
region: "my-region"
scheme: local
signedUrls:
durationMinutes: 3
notifications:
type: local
region: "my-region"
publisher:
topicName: "foo"
processor:
queueName: "queue"
accountId: "bar"
emailer:
subject: "Notice: Execution \"{{ name }}\" has {{ phase }} in \"{{ domain }}\"."
sender: "[email protected]"
body: >
Execution \"{{ name }}\" has {{ phase }} in \"{{ domain }}\". View details at
<a href=\http://example.com/projects/{{ project }}/domains/{{ domain }}/executions/{{ name }}>
http://example.com/projects/{{ project }}/domains/{{ domain }}/executions/{{ name }}</a>. {{ error }}
externalEvents:
Enable: false
type: gcp
gcp:
projectId: "foo"
eventsPublisher:
topicName: "bar"
eventTypes: all
Logger:
show-source: true
level: 5
storage:
type: stow
stow:
kind: s3
config:
region: us-east-1
disable_ssl: true
v2_signing: true
endpoint: http://localhost:30002
auth_type: accesskey
access_key_id: minio
secret_key: miniostorage
signedUrl:
stowConfigOverride:
endpoint: http://localhost:30002
cache:
max_size_mbs: 10
target_gc_percent: 100
container: "my-s3-bucket"
queues:
executionQueues:
- dynamic: "gpu_dynamic"
attributes:
- gpu
- dynamic: "critical"
attributes:
- critical
- dynamic: "default"
attributes:
- defaultclusters
workflowConfigs:
- project: "my_queue_1"
domain: "production"
workflowName: "my_workflow_1"
tags:
- critical
- project: "production"
workflowName: "my_workflow_2"
tags:
- gpu
- project: "my_queue_3"
domain: "production"
workflowName: "my_workflow_3"
tags:
- critical
- tags:
- default
task_resources:
defaults:
cpu: 100m
memory: 200Mi
storage: 100M
limits:
cpu: 500m
gpu: 1
memory: 300Mi
storage: 10G
task_type_whitelist:
sparkonk8s:
- project: my_queue_1
domain: production
- project: my_queue_2
domain: production
qubolespark:
- project: my_queue_2
domains:
- id: development
name: development
- id: staging
name: staging
- id: production
name: production
- id: domain
name: domain
cluster_resources:
templatePath: pkg/clusterresource/sampletemplates
templateData:
foo:
value: "bar"
foofoo:
valueFrom:
env: SHELL
refresh: 3s
qualityOfService:
tierExecutionValues:
LOW:
queueingBudget: 30m
MEDIUM:
queueingBudget: 10m
HIGH:
queueingBudget: 1m
# By default UNDEFINED has no queueing budget when it is omitted from the configuration
defaultTiers:
development: LOW
staging: MEDIUM
# by default production has an UNDEFINED tier when it is omitted from the configuration
namespace_mapping:
template: "{{ project }}-{{ domain }}" # Default namespace mapping template.