Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

ravenolf/soramitsu-test-ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible

This is an ansible playbook that deploys docker and a single-node kubernetes cluster on a remote host and deploys and smaple application on it.

For the roles we use the ones from user geerlingguy from github:

The custom role (deploy role) does the following:

  • Installs the python dependencies for k8s and docker_image ansible modules
  • Pulls the code from github and build a docker image
  • Deploys the pods on kubernetes as a replica set of 2
  • deploys a service with the nodeport configuration (uses round-robin load balancing by default)

The app is accessible via http://YOUR_SERVER_IP:30080

To run the playbook, get the code:

git clone https://github.com/ravenolf/soramitsu-test-ansible --recursive
cd soramitsu-test-ansible

Add the private key as keys/id_ansible_rsa or remove this line from ansible.cfg if you want to use your host private key:

private_key_file = keys/id_rsa_ansible

Change the host on hosts.ini.

Run the playbook:

ansible-playbook main.yml

Variables can be changed in main.yml

Sources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published