Cloud project Cloud section repository.
- Install Ansible as a python dependency:
pip install -r requirements.txt
- Then:
source add-scripts-to-path.sh
- Edit
config.sh
and configure it to match your infrastructure. - Generate your Ansible's
hosts.ini
by runningcompile-ansible-hosts.sh
. - Generate a new ed25519 keypair under the
setup_kube
folder by runninggenerate-kube-keypair.sh
. - Open a new shell and run the command
garr-0
to create the needed ssh tunnel (just leave the shell in the background). - Run every Ansible playbook under
playbooks
by runningplaybook-run-all.sh
. - To build the Docker images, refer to the CloudProject-Edge repository.
- To stop the cluster, run:
./playbook-run.sh cluster-teardown
- scripts: ssh, tunneling and sftp bash scripts.
- playbooks: Ansible provision playbooks.
- services: Docker images and the corresponding source code.
- data: here you will find application specific runtime files.
- setup_kube: Kubernetes installer.
- add-scripts-to-path.sh: add every script under scripts to
$PATH
. - config.sh: configure it to match your infrastructure.
- compile-ansible-hosts.sh: generate the
hosts.ini
file. - playbook-run.sh: run the specified Ansible playbook inside the playbooks folder.
- playbook-run-all.sh: automatically run every Ansible playbook inside the playbooks folder (fixed order).
- generate-kube-keypair.sh: Generate the needed keypair for Kubernetes setup.
- requirements.txt: Ansible python dependencies.
sync
: sync via rsync the entire local repository folder, including secrets, literally every file you have added in that folder so far, so be careful!common
: install all the needed utilities.boot-master
: start the Kubernetes control plane.boot-workers
: start the Kubernetes workers.cluster-teardown
: stops the Kubernetes cluster and remove the previously registered workers.