- Create a ssh-key using ed25519 and name
id_ed25519_lab. Put it on./.ssh! - Add to ssh-agent
eval `ssh-agent`
ssh-add ./.ssh/id_ed25519_lab- Execute the playbook with:
ansible-galaxy collection install -r ansible/requirements.yml && \
ansible-playbook -v -K ansible/playbook.yml- create password with
openssl rand -base64 2048 > ansible/vault.pass- create vault for aws keys
ansible-vault create ansible/pass.yml --vault-password-file vault.pass- Add keys:
---
ec2_access_key: "YOUR_AWS_ACCESS_KEY"
ec2_secret_key: "YOUR_AWS_SECRET_KEY"- Execute the playbook:
ansible-galaxy collection install -r ansible/requirements.yml && \
ansible-playbook -v -K ansible/playbook-aws.yml --vault-password-file ansible/vault.pass- Install kubectx, k9s, kubectl in your machine
- Run
./k3s/set-kubeconfig.shscript by passing <CUSTOM_CLUSTER_NAME> and of the master vm. - in the
f43-dev-mqtt-mastercluster controller:- install Rabbitmq cluster operator
kubectl apply -f "https://github.com/rabbitmq/cluster-operator/releases/latest/download/cluster-operator.yml" - install rabbitmq
kubectl apply -f ./k3s/mqtt/k8s-deployment.yml
- install Rabbitmq cluster operator
- In the
f43-dev-mastercluster controller:- install influxdb
kubectl apply -f ./k3s/cloud/k8s-influxdb.yaml - install redis
kubectl apply -f ./k3s/data_processing/k8s-redis.yaml - (optional if ci/cd doesn't work) clone the repo, compile the image and use
podman save localhost/edge:latest | k3s ctr images import -to save it to k3s registry - install grafana and prometheus
kubectl apply -f ./k3s/minitoring/k8s-prometheus.yamlkubectl apply -f ./k3s/minitoring/k8s-grafana.yaml - install the microservice
kubectl apply -f ./k3s/data_processing/k8s-edge.yaml
- install influxdb
- https://www.confluent.io/blog/stream-processing-iot-data-best-practices-and-techniques/
- https://youtu.be/hz4ffEt352k
- https://github.com/sushant1827/Temperature-Forecasting-using-IoT-Data
@book{book:{99010117},
title = {Ansible for DevOps: Server and configuration management for humans},
author = {Jeff Geerling},
publisher = {Midwestern Mac, LLC},
isbn = {098639341X; 9780986393419},
year = {2015},
edition = {9},
url = {https://www.jeffgeerling.com/project/ansible-devops}
}