Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial Devops Docs (Basic Setup and steps to add VM to swarm) #3

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions docs/devops/add-vms-to-swarm.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
title: Adding newly added VMs to Swarm
---

<head>
<title>Adding newly added VMs to Swarm</title>
<meta name="description" content="Overview of Infra management for Amakrush" />
</head>

Pre Requisistes:

- Ensure you have followed steps from setup document.

Next Steps:

- Run the base_setup.yml file by using commnand `ansible-playbook base_setup.yml -i azure_rm.yml`

Verification:

- SSH into manager node
- Run `docker node ls` and verify if the node is successfully added
18 changes: 18 additions & 0 deletions docs/devops/setup.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
title: Setup
---

<head>
<title>Setup</title>
<meta name="description" content="Overview of Infra management for Amakrush" />
</head>

Pre Requisistes:

- Install Ansible
- Add vault token to environment. ANSIBLE_HASHI_VAULT_TOKEN





24 changes: 24 additions & 0 deletions docs/infra/scaling-disk-size.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
title: Scaling VM Disk Size
---

<head>
<title>Scaling VM Disk Size</title>
<meta name="description" content="Overview of Infra management for Amakrush" />
</head>

Pre-requisites:

- Ensure you have followed steps from setup document.

Next Steps:

- Go to variables.tf file
- To update disk size of VM, update the value of variable corresponding to VM Type.
- For ex. If you want to update VM disk size of all GPU Based Workers, update the value of variable `gpu_disk_size`
- Run ```terraform plan``` to review changes
- Run ```terraform apply``` to apply changes

Note:

- You can expect a minimal downtime as during upgradation of VM Disk Size as machine has to be stopped for increasing size and then restarted
20 changes: 20 additions & 0 deletions docs/infra/scaling-vm-horizontally.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
title: Scaling VM Horizontally
---

<head>
<title>Scaling VM Horizontally</title>
<meta name="description" content="Overview of Infra management for Amakrush" />
</head>

Pre-requisites:

- Ensure you have followed steps from setup document.

Next Steps:

- Go to variables.tf file
- To update the number of VM instances, update the value of variable corresponding to VM Type.
- For ex. If you want to update the number of GPU Based Instances, update the value of variable `gpu_instance_count`
- Run ```terraform plan``` to review changes
- Run ```terraform apply``` to apply changes
8 changes: 7 additions & 1 deletion sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@ module.exports = {
type: 'category',
label: 'Infra',
collapsed: false,
items: ['infra/overview', 'infra/setting-up'],
items: ['infra/overview', 'infra/setting-up', 'infra/scaling-disk-size', 'infra/scaling-vm-horizontally'],
},
{
type: 'category',
label: 'Devops',
collapsed: false,
items: ['devops/setup', 'devops/add-vms-to-swarm'],
},
],

Expand Down