syakesaba
07/31/2024, 6:02 PMMarvin
07/31/2024, 6:03 PMhelm repo add prefect <https://prefecthq.github.io/prefect-helm>
helm repo update
2. Create a namespace:
kubectl create namespace prefect
3. Create a Kubernetes secret for the PostgreSQL credentials:
kubectl create secret generic postgresql-credentials \
--namespace=prefect \
--from-literal=username=your_postgres_username \
--from-literal=password=your_postgres_password
4. Customize the Helm chart values:
Create a file named values.yaml
with the following contents, replacing the placeholders with your actual PostgreSQL information:
postgresql:
enabled: false # Disable the default PostgreSQL installation
externalDatabase:
host: your_postgres_host
port: your_postgres_port
user: your_postgres_username
password: your_postgres_password
database: your_postgres_database
5. Deploy Prefect with the modified values file:
helm install my-prefect-release prefect/prefect-server -n prefect -f values.yaml
For further details, you can refer to the following links:
- Prefect Kubernetes Deployment Guide
- Host Guide for Prefect