This Lab deploys a sinatra application to a K8S cluster in the cloud.
Before you start, make sure you are using ruby version 3.1. You can check the version by running ruby -v.
-
Clone this repository:
git clone git@github.com:HeitorMC/HandsOn-k8s.git
-
Change into the application directory:
cd HandsOn-k8s -
install the dependencies:
bundle exec ruby app.rb -
Run the app
bundle exec ruby app.rb -
The web application will be availabe at http://localhost:4567/
-
Clone this repository:
git clone git@github.com:HeitorMC/HandsOn-k8s.git
-
Change into the application directory:
cd HandsOn-k8s -
Build the app’s container image
docker build -t sinatra-app . -
Run the container
docker run -p 4567:4567 sinatra-app
-
The web application will be availabe at http://localhost:4567/