Ocean is the place where whales live, eat, sleep, and think.
- Access the bastion
- Add the bastion's public key to each node
Install virtualenv
:
sudo apt-get update -y
sudo apt-get install -y pipx
pipx install virtualenv
pipx ensurepath
Create a virtual environment:
mkdir ./Ocean
cd ./Ocean/
virtualenv ansible
source ansible/bin/activate
Clone this repository:
git clone --recurse-submodules https://github.com/metalwhale/ocean
cd ./ocean/
Install requirements for kubespray
:
cd ./kubernetes/kubespray/
pip install -U -r requirements.txt
cd ../../
Install roles:
ansible-galaxy install -r requirements.yml
Create an inventory file and replace the placeholders with correct values:
cd ./ocean/
cp ./inventory.yaml.example ./inventory.yaml
vi ./inventory.yaml
IP_ADDRESS
s: IP addresses of each node
Run basic setup:
ansible-playbook -i inventory.yaml --ask-become-pass base.yml
cd ../
Create an inventory file and replace the placeholders with correct values:
cd ./kubernetes/
cp ./inventory/hosts.yaml.example ./inventory/hosts.yaml
vi ./inventory/hosts.yaml
IP_ADDRESS
s: IP addresses of each node
Deploy wave cluster:
cd ./kubespray/
ansible-playbook -i ../inventory --become --become-user=root --ask-become-pass cluster.yml
cd ../../