fonylew / r2mle-workshop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

r2mle-workshop

Airflow

Install

helm upgrade --install airflow oci://registry-1.docker.io/bitnamicharts/airflow --namespace airflow --create-namespace

Ref: charts/bitnami/airflow at main · bitnami/charts (github.com)

Getting username and password

export AIRFLOW_PASSWORD=$(kubectl get secret --namespace "airflow" airflow -o jsonpath="{.data.airflow-password}" | base64 -d)
    echo User:     user
    echo Password: $AIRFLOW_PASSWORD

Port forwarding to access the Airflow Web UI

kubectl port-forward --namespace airflow svc/airflow 8080:8080 &
    echo "Airflow URL: http://127.0.0.1:8080"

Update requirements.txt

cd airflow

kubectl create -n airflow configmap requirements --from-file=requirements.txt
helm upgrade airflow oci://registry-1.docker.io/bitnamicharts/airflow --namespace airflow -f values.yaml

mlflow

Install

helm upgrade --install mlflow oci://registry-1.docker.io/bitnamicharts/mlflow --namespace mlflow --create-namespace

Ref: charts/bitnami/mlflow at main · bitnami/charts (github.com)

Getting username and password

echo mlflow Username: $(kubectl get secret --namespace mlflow mlflow-tracking -o jsonpath="{ .data.admin-user }" | base64 -d)
echo mlflow Password: $(kubectl get secret --namespace mlflow mlflow-tracking -o jsonpath="{ .data.admin-password }" | base64 -d)
echo minio Username: $(kubectl get secret --namespace mlflow mlflow-minio -o jsonpath="{ .data.root-user }" | base64 -d)
echo minio Password: $(kubectl get secret --namespace mlflow mlflow-minio -o jsonpath="{ .data.root-password }" | base64 -d)

Port forwarding to access the Minio UI

kubectl port-forward --namespace mlflow svc/mlflow-minio 9001:9001 &
    echo "Minio URL: http://127.0.0.1:9001"

Reference

About

License:Apache License 2.0


Languages

Language:Python 100.0%