Amit Gupta
06/23/2022, 7:40 PMKevin Kho
06/23/2022, 7:44 PMAmit Gupta
06/23/2022, 7:52 PMKevin Kho
06/23/2022, 7:53 PMAmit Gupta
06/23/2022, 8:06 PMKevin Kho
06/23/2022, 8:08 PMAmit Gupta
06/23/2022, 8:14 PMKevin Kho
06/23/2022, 8:18 PMapi
container so that orion starts pointing to the database you want
spec:
selector:
matchLabels:
app: orion
replicas: 1 # We're using SQLite, so we should only run 1 pod
template:
metadata:
labels:
app: orion
spec:
containers:
- name: api
image: prefecthq/prefect:2.0b7-python3.8
command: ["prefect", "orion", "start", "--host", "0.0.0.0", "--log-level", "WARNING"]
imagePullPolicy: "IfNotPresent"
ports:
- containerPort: 4200
- name: agent
image: prefecthq/prefect:2.0b7-python3.8
command: ["prefect", "agent", "start", "kubernetes"]
imagePullPolicy: "IfNotPresent"
env:
- name: PREFECT_API_URL
value: <http://orion:4200/api>
Amit Gupta
06/23/2022, 8:20 PMPretush Gupta
06/27/2022, 4:50 AMKevin Kho
06/27/2022, 3:16 PMPretush Gupta
06/28/2022, 5:26 AMKevin Kho
06/28/2022, 8:35 AMspec:
selector:
matchLabels:
app: orion
replicas: 1 # We're using SQLite, so we should only run 1 pod
template:
metadata:
labels:
app: orion
spec:
containers:
- name: api
image: prefecthq/prefect:2.0b7-python3.8
command: ["prefect", "orion", "start", "--host", "0.0.0.0", "--log-level", "WARNING"]
imagePullPolicy: "IfNotPresent"
ports:
- containerPort: 4200
env:
- name: PREFECT_ORION_DATABASE_CONNECTION_URL
value: <postgresql+asyncpg://postgres:yourTopSecretPassword@localhost:5432/orion>
like that?Pretush Gupta
06/28/2022, 8:37 AM