Skip to content

Commit 9b77c03

Browse files
Jiwantb3bigbitbus
authored andcommitted
Add Vagrant Documentation for Mac Installation
Add Vagrant Documentation for Linux Installation Add Vagrant Setup Guidelines to quickstart-vagrant.md Rename refrences to windows-setup.md as putty-setup.md Add Setup KAT notes to README.md Add Notes for Vagrant Commands Align Main Image in Center Add Heading to Main Image Add changes to labelling Minor Changes Add Uniformity to Deploy Table Fix Links for remote server Add vagrant resume command
1 parent 3ec1266 commit 9b77c03

File tree

6 files changed

+52
-53
lines changed

6 files changed

+52
-53
lines changed

README.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
<center>
2-
<img src="documentation/images/kubernetes-application.svg" alt="BigBitBus KAT components" width="400"/>
3-
</center>
1+
<div align="center">
2+
<h1> BigBitBus KAT Components</h1>
3+
<img src="documentation/images/kubernetes-application.svg" alt="BigBitBus KAT components" width="400"/>
44

5-
**Components of the BigBitBus KAT application code. Click on the diagram to enlarge, or follow [this link](documentation/) for detailed documentation**
5+
<!-- **Components of the BigBitBus KAT application code. Click on the diagram to enlarge, or follow [this link](documentation/) for detailed documentation** -->
6+
**Click on the diagram to enlarge, or follow [this link](documentation/) for detailed documentation**
7+
</div>
68

79
# Introduction
810

@@ -16,7 +18,6 @@ Most components of the Kubernetes cloud native ecosystem are extremely well docu
1618

1719
From here, we recommend you start with a [review of some Kubernetes and related concepts](./documentation/) we have put together. Or, if you want to directly go to the code and examples you can navigate the folders in the repository, the table below will launch you right in.
1820

19-
2021
# What is where?
2122

2223
| Category | File or Directory | Description |
@@ -28,6 +29,12 @@ From here, we recommend you start with a [review of some Kubernetes and related
2829
| Monitoring | [code/k8s-common-code/monitoring](code/k8s-common-code/monitoring) |Installing and configuring monitoring with Prometheus and Grafana into the Kubernetes cluster using standard Helm charts created by the Prometheus community |
2930
| Kubernetes Dashboard | [code/k8s-common-code/k8sdashboard](code/k8s-common-code/k8sdashboard) | Deploying the Kubernetes dashboard, a browser-based GUI view of the Kubernetes cluster |
3031

32+
# Deploy KAT Project
33+
| Deployment | File or Directory | Description |
34+
|---|---|---|
35+
| Cloud Native | [documentation/cloudvm.md](./documentation/cloudvm.md) | Deploy KAT on a Cloud |
36+
| Local System | [documentation/quickstart-vagrant.md](./documentation/quickstart-vagrant.md) | Deploy KAT on your Local System|
37+
3138
# License
3239

3340
All code and configuration in the BigBitBus KAT repository (code files contained in this directory and all subdirectories) is licensed under the [Apache 2.0 License](http://www.apache.org/licenses/LICENSE-2.0).

documentation/cloudvm.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ For example (Mac, Linux)
3535
ssh -i private_key_file theuser@publicip -L 8080:localhost:80 -N
3636
```
3737

38-
For Windows, see [this file](windows-setup.md) on how to setup Putty for port forwarding.
38+
For Windows, see [this file](putty-setup.md) on how to setup Putty for port forwarding.
3939

4040
You can now open a web-browser and reach these end-points
4141
- Todo application Vuejs Frontend [http://localhost:8080/frontend/](http://localhost:8080/frontend/) [Learn more](../code/app-code/frontend/todo-vuejs/)
42-
- Todo application browsable API [http://localhost:8080/djangoapi/api/v1/](http://localhost:8080/djangoapi/api/v1) [Learn more](../code/app-code/api/todo-python-django/)
42+
- Todo application browsable API [http://localhost:8080/djangoapi/apis/v1/](http://localhost:8080/djangoapi/apis/v1) [Learn more](../code/app-code/api/todo-python-django/)
4343
- Kubernetes Dashboard [http://localhost:8080/dashboard/](http://localhost:8080/dashboard/) [Learn more](../code/k8s-common-code/k8sdashboard/) (Access token is printed in the Vagrant output as mentioned above).
4444
- Grafana Monitoring [http://localhost:8080/monitoring-grafana/](http://localhost:8080/monitoring-grafana/) [Learn more](../code/k8s-common-code/monitoring/) (default credentials: admin/promoperator)
4545

documentation/windows-setup.md renamed to documentation/putty-setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### This README goes over the steps needed to connect to the cloud VM and display the KAT example on your local Windows machine. You don't need this if you used Vagrant on your local machine.
1+
### Connect to Cloud VM from your Local Windows Machine using Port Forwarding Technique.
22

33
Requirements:
44
- Putty

documentation/quickstart-vagrant.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Follow these steps to quickly deploy the KAT example. You will need a PC with at
44

55
1. Clone this repository: `git clone https://github.com/BigBitBusInc/kubernetes-automation-toolkit.git`
66

7-
2. Install Vagrant for your OS (Vagrant supports Windows, Linux and MacOS); you may also need to install the hypervisor software and a vagrant plugin for this hypervisor on your platform; you should also find this information on the Vagrant installation page for your OS. [This link](https://gist.github.com/wpscholar/a49594e2e2b918f4d0c4) lists some useful Vagrant commands.
7+
2. Install `Vagrant` for your OS (Vagrant supports Windows, Linux and MacOS); you may also need to install the hypervisor software and a vagrant plugin for this hypervisor on your platform; you should also find this information on the Vagrant installation page for your OS. [Follow guidelines](../documentation/vagrant-setup.md) to setup Vagrant on your respective OS. [This link](https://gist.github.com/wpscholar/a49594e2e2b918f4d0c4) lists some useful Vagrant commands.
88

99
3. Navigate to the root directory of the KAT repository and enter this command in a terminal
1010
```bash
@@ -16,7 +16,7 @@ Please be patient, even on a fast Internet connection remember we are downloadin
1616

1717
3. You can now open a web-browser and reach these end-points
1818
- Todo application Vuejs Frontend [http://localhost:8080/frontend/](http://localhost:8080/frontend/) [Learn more](../code/app-code/frontend/todo-vuejs/)
19-
- Todo application browsable API [http://localhost:8080/djangoapi/api/v1/](http://localhost:8080/djangoapi/api/v1) [Learn more](../code/app-code/api/todo-python-django/)
19+
- Todo application browsable API [http://localhost:8080/djangoapi/apis/v1/](http://localhost:8080/djangoapi/apis/v1) [Learn more](../code/app-code/api/todo-python-django/)
2020
- Kubernetes Dashboard [http://localhost:8080/dashboard/](http://localhost:8080/dashboard/) [Learn more](../code/k8s-common-code/k8sdashboard/) (Access token is printed in the Vagrant output as mentioned above).
2121
- Grafana Monitoring [http://localhost:8080/monitoring-grafana/](http://localhost:8080/monitoring-grafana/) [Learn more](../code/k8s-common-code/monitoring/) (default credentials: admin/promoperator)
2222

@@ -51,7 +51,7 @@ Confirm that you can now log into the Vagrant VM by simply typing `vagrant ssh`
5151
ssh vagrant-vm-name-in-ssh-config -L 8080:localhost:80 -N
5252
```
5353

54-
For Windows you can look at some of the screenshots in [this file](windows-setup.md) to get an idea of how to set ssh port-forwarding with [Putty](https://www.putty.org/).
54+
For Windows you can look at some of the screenshots in [this file](putty-setup.md) to get an idea of how to set ssh port-forwarding with [Putty](https://www.putty.org/).
5555

5656

5757
Here are links to some useful documentation of different tools that are used in the KAT example.
@@ -75,3 +75,13 @@ To destroy the Vagrant VM, open a terminal and go to the kubernetes-automation-t
7575
```
7676
vagrant destroy
7777
```
78+
## Useful Vagrant Commands
79+
| Vagrant | Cmd |
80+
| ---- | ---------- |
81+
| Start Vagrant Environment | `vagrant up` |
82+
| Connect to Vagrant via SSH | `vagrant ssh` |
83+
| Stop Vagrant Machine | `vagrant halt` |
84+
| Resume Vagrant Machine | `vagrant resume` |
85+
| Suspend Virtual Machine | `vagrant suspend` |
86+
| List Installed Boxes | `vagrant box list`|
87+
| Delete Vagrant Machine | `vagrant destroy` |

documentation/vagrant-setup.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
## Setup Vagrant on Windows
2+
3+
1. Install `VirtualBox`. Vagrant requires VirtualBox to create Virtual Machine. Navigate to https://www.virtualbox.org/wiki/Downloads to Download Virtual Box.
4+
5+
2. Install `Vagrant`. Navigate to https://www.vagrantup.com/downloads to download latest version of Vagrant.
6+
7+
3. Install `Putty`. Navigate to https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html to download latest version of putty.
8+
9+
10+
## Setup Vagrant on Mac
11+
12+
1. Install `Virtual box` using [direct download](https://www.virtualbox.org/wiki/Downloads) or use homebrew for installing it.<br/> `brew cask install virtualbox`
13+
14+
2. Install `Vagrant` using [direct download](https://www.vagrantup.com/downloads.html) or use homebrew for installing it.<br/> `brew cask install vagrant`
15+
16+
17+
## Setup Vagrant on Linux
18+
1. Install `Virtual box` by running: <br> `sudo apt update` <br> `sudo apt install virtualbox`
19+
20+
2. Download `Vagrant` Package with wget: <br> `curl -O https://releases.hashicorp.com/vagrant/2.2.14/vagrant_2.2.14_x86_64.deb`
21+
22+
3. Install Downloaded File by typing: <br> `sudo apt install ./vagrant_2.2.14_x86_64.deb`
23+
24+
4. Verify installation using: <br> `vagrant --version`

documentation/windows-setup-new.md

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)