/squonk2-data-manager-ui-ansible

Ansible (AWX) Kubernetes deployment scripts for the Mini-Apps Data-Tier UI

Primary LanguageJinja

Ansible playbook to deploy the Squonk2 Data Manager UI

lint

GitHub tag (latest SemVer)

CodeFactor

An Ansible playbook and role normally launched form an AWX server instance that deploys our Squonk2 Data Manager UI as a Kubernetes StatefulSet with Service and Ingress.

Deploying for development (Docker Desktop)

You can deploy the UI to a local (Minikube or Docker Desktop) cluster using a suitable set of parameters. An example file is present in the project root (parameters.yaml).

You will need: -

Refer to the Data Manger documentation for details on Minikube or Docker Desktop configuration

Use a suitable environment: -

python -m venv ~/.venv/mini-apps-data-tier-ui-ansible

source ~/.venv/mini-apps-data-tier-ui-ansible/bin/activate
pip install --upgrade pip
pip install -r requirements.txt

And a local cluster config, here we keep our files in the home directory k8s-config and have a config file for our cluster called config-local: -

export KUBECONFIG=~/k8s-config/config-local

Check the cluster connection with kubectl: -

kubectl get no

Review the parameter template and copy it to parameters.yaml, changing variables as required.

With the config and parameters prepared you can now run the playbook to install the UI: -

ansible-playbook site.yaml -e @parameters.yaml