-
Notifications
You must be signed in to change notification settings - Fork 5
Deployment
Jonathan Mang edited this page Jan 24, 2022
·
6 revisions
The manifest ./docker/dqastats-workflow.yaml
uses Argo Workflows to shedule the dockerized version of DQAstats to run a data quality (DQ) analysis on a regular basis.
-
Install KinD (Kubernetes in Docker).
-
Create a local cluster for testing:
kind create cluster
-
Install Argo Workflows:
## Add the HELM repo for Argo: helm repo add bitnami https://charts.bitnami.com/bitnami ## Install Argo Workflow with own presets: helm install argo-wf bitnami/argo-workflows \ --set server.serviceAccount.name=argo-wf-san
-
Follow the instructions in the console to obtain the Bearer token, these might be similar to the following:
## Note: If you changed the name `arg-wf` of the deployment ## in the `helm install ...` command above, ## you also need to change it here: SECRET=$(kubectl get sa argo-wf-san -o=jsonpath='{.secrets[0].name}') ARGO_TOKEN="Bearer $(kubectl get secret $SECRET -o=jsonpath='{.data.token}' | base64 --decode)" echo "$ARGO_TOKEN"
-
Change the manifest
./docker/dqastats-workflow.yaml
to your needs or keep the current one for demo purpose. -
Send the secret and the workflow to the cluster:
kubectl apply -f ./docker/dqastats-secret.yaml kubectl apply -f ./docker/dqastats-workflow.yaml
🎉 Big thanks to @christian.gulden / @chgl for all Kubernetes Support! The draft of this "How to ..." section is borrowed from him, originally from here: https://gitlab.miracum.org/miracum/charts/-/blob/master/README.md.