View Code? Open in Web Editor
NEW
This project forked from simulationpoint/sba.kubernetes-cluster
Batchfile 16.24%
Shell 6.39%
CSS 0.51%
JavaScript 26.23%
HTML 46.30%
Python 4.33%
sba.kubernetes-cluster's Introduction
SBA Kubernetes Two-Container Cluster
- Objective - Clone and modify this repository locally to ensure that Jenkins can successfully build this project.
- Purpose - To demonstrate container orchestration skillset
Prerequisite Software For Project
- Install Git CLI
- Install Docker
- Install
minikube
- Install
kubectl
- Install Kontena Lens
- Install Python
- Install PiP via Python
- Install
Flask
python -m pip install Flask
- Fork and clone this project locally.
- Create a respective
requirements.txt
to download any pip
dependencies for this python project.
- Ensure you
push
the newly created file: requirements.txt
- Create a
Dockerfile
which runs the application upon running the container.
- Ensure you
push
the newly created file: Dockerfile
- Configure a Kubernetes cluster to build and run one pod which contain aforementioned application.
- Ensure each application is accessible on a different port.
- Ensure you
push
the newly created file: kubeconfig
Part 1 - Forking the Project
- To fork the project, click the
Fork
button located at the top right of the project.
Part 2 - Navigating to forked Repository
- Navigate to your github profile to find the newly forked repository.
- Copy the URL of the project to the clipboard.
Part 3 - Cloning forked repository
- Clone the repository from your account into the
~/dev
directory.
- if you do not have a
~/dev
directory, make one by executing the following command:
- navigate to the
~/dev
directory by executing the following command:
- clone the project by executing the following command:
git clone https://github.com/MYUSERNAME/NAMEOFPROJECT
- Upon executing
python web.py
, navigate to localhost:8080
to view the webpage.
Part 1 - Pushing local changes to remote repository
- from a terminal navigate to the root directory of the cloned project.
- from the root directory of the project, execute the following commands:
- add all changes
- commit changes to be pushed
git commit -m 'I have added changes'
- push changes to your repository
git push -u origin master
Part 2 - Submitting assignment
- from the browser, navigate to the forked project from your github account.
- click the
Pull Requests
tab.
- select
New Pull Request
sba.kubernetes-cluster's People
Contributors