- Delete the kind-cluster
bridgeai-gitops-infra
if it already exists
kind delete cluster --name bridgeai-gitops-infra
- Clone the bridgeAI infra repo,
bridgeai-gitops-infra
git clone https://github.com/digicatapult/bridgeAI-gitops-infra.git
- Modify
bridgeai-gitops-infra
repo -flux/clusters/kind-cluster/config/airflow-values.yaml
with the branch of this DAGs repo that you want to test; for examplebranch: feature/data-ingestion
- Modify
bridgeai-gitops-infra
repo -flux/clusters/kind-cluster/base/flux-system/gotk-sync.yaml
with branch of the infra repo that you are using to test; for exampletest/data-ingestion
- Add the changes in above files to the branch
test/data-ingestion
- Commit and push the change to
bridgeai-gitops-infra
test/data-ingestion
branch - Update the
feature/data-ingestion
branch ofbridgeAI-airflow-DAGs
repo with the new dag and relevant changes that you want to test - From the
bridgeai-gitops-infra
repo,test/data_ingestion
branch, run the following to bring up a local kind cluster. Check the readme for more details.
./flux/scripts/add-kind-cluster.sh
- From the
bridgeai-gitops-infra
repo,test/data_ingestion
branch, run the following to install and start the infra on the above created cluster. Check the readme for more details.
lux/scripts/install-flux.sh -b test/data_ingestion
You can check the logs by running kubectl events --watch
from a terminal
10. Inspect the configmaps if needed
kubectl get configmaps
kubectl describe configmap <config-map-name>
- Ensure you have the PVCs needed up and ready
kubectl get pvc
- Access the Airflow UI - http://localhost:3080/airflow
- You can update the airflow variable from the airflow UI; Admin -> Variables
- Open the DAG and trigger it. You can inspect the logs in the airflow UI as well as kubectl events.
Some commands are;
kubectl get pods
- to get list of pods in the default namespace
kubectl events --watch
- to monitor the events from kubernetes
kubectl log <pod>
- to get the logs from a specific pod\