attempt to add airflow ini 3
This commit is contained in:
+9
-9
@@ -32,18 +32,18 @@ kubectl apply -n argocd -f apps/0-project-and-root.yaml;
|
||||
# kubectl -n ai create secret generic airflow-webserver-secret --from-literal="webserver-secret-key=$(python3 -c 'import secrets;print(secrets.token_hex(16))')";
|
||||
|
||||
# airflow stuffs
|
||||
kubectl -n ai exec -it svc/postgresql-primary -- bash -lc "psql -U postgres -c 'CREATE DATABASE airflow;'";
|
||||
set -l PGBOUNCER_SVC (kubectl -n ai get svc -l tier=airflow,component=pgbouncer -o jsonpath='{.items[0].metadata.name}');
|
||||
echo $PGBOUNCER_SVC;
|
||||
# kubectl -n ai exec -it svc/postgresql-primary -- bash -lc "psql -U postgres -c 'CREATE DATABASE airflow;'";
|
||||
# set -l PGBOUNCER_SVC (kubectl -n ai get svc -l tier=airflow,component=pgbouncer -o jsonpath='{.items[0].metadata.name}');
|
||||
# echo $PGBOUNCER_SVC;
|
||||
|
||||
# stats (used by the metrics sidecar and also points to pgbouncer itself on 127.0.0.1:6543)
|
||||
kubectl -n ai create secret generic airflow-pgbouncer-stats \
|
||||
--from-literal=connection="postgresql://postgres:mypassword@127.0.0.1:6543/pgbouncer?sslmode=disable";
|
||||
# # stats (used by the metrics sidecar and also points to pgbouncer itself on 127.0.0.1:6543)
|
||||
# kubectl -n ai create secret generic airflow-pgbouncer-stats \
|
||||
# --from-literal=connection="postgresql://postgres:mypassword@127.0.0.1:6543/pgbouncer?sslmode=disable";
|
||||
|
||||
kubectl -n ai create secret generic airflow-metadata \
|
||||
--from-literal=connection="postgresql+psycopg2://postgres:mypassword@$PGBOUNCER_SVC:6543/airflow";
|
||||
# kubectl -n ai create secret generic airflow-metadata \
|
||||
# --from-literal=connection="postgresql+psycopg2://postgres:mypassword@$PGBOUNCER_SVC:6543/airflow";
|
||||
|
||||
minikube service -n ai airflow-webserver --url || echo "FAILED TO FIND SERVICE"
|
||||
# minikube service -n ai airflow-webserver --url || echo "FAILED TO FIND SERVICE"
|
||||
|
||||
# port-forward argocd ui
|
||||
echo "";
|
||||
|
||||
Reference in New Issue
Block a user