Skip to content

Commit f18b582

Browse files
authored
Merge pull request #13 from BigBitBusInc/documentation/vagrant-cmds
Documentation/vagrant cmds
2 parents 33682a5 + d9a7768 commit f18b582

File tree

5 files changed

+54
-12
lines changed

5 files changed

+54
-12
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: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +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.
8-
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; We have [guidelines](../documentation/vagrant-setup.md) on how to setup Vagrant on your PC.
98
3. Navigate to the root directory of the KAT repository and enter this command in a terminal
109
```bash
1110
cd kubernetes-automation-toolkit
@@ -16,7 +15,7 @@ Please be patient, even on a fast Internet connection remember we are downloadin
1615

1716
3. You can now open a web-browser and reach these end-points
1817
- 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/)
18+
- 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/)
2019
- 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).
2120
- Grafana Monitoring [http://localhost:8080/monitoring-grafana/](http://localhost:8080/monitoring-grafana/) [Learn more](../code/k8s-common-code/monitoring/) (default credentials: admin/promoperator)
2221

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

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/).
53+
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/).
5554

5655

5756
Here are links to some useful documentation of different tools that are used in the KAT example.
@@ -75,3 +74,15 @@ To destroy the Vagrant VM, open a terminal and go to the kubernetes-automation-t
7574
```
7675
vagrant destroy
7776
```
77+
## Useful Vagrant Commands
78+
| Vagrant | Cmd |
79+
| ---- | ---------- |
80+
| Start Vagrant Environment | `vagrant up` |
81+
| Connect to Vagrant via SSH | `vagrant ssh` |
82+
| Stop Vagrant Machine | `vagrant halt` |
83+
| Resume Vagrant Machine | `vagrant resume` |
84+
| Suspend Virtual Machine | `vagrant suspend` |
85+
| List Installed Boxes | `vagrant box list`|
86+
| Delete Vagrant Machine | `vagrant destroy` |
87+
88+
[This link](https://gist.github.com/wpscholar/a49594e2e2b918f4d0c4) lists some useful Vagrant commands.

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`

0 commit comments

Comments
 (0)