This application is built to run in a cluster and not locally. It would take some additional changes to have it work locally.
$ bundle install
$ rackup
Create the Docker image.
$ docker build . -t exampleapp-ruby
Test the Docker image.
$ docker run -it -p 8080:8080 exampleapp-ruby:k8s
Push the Docker image.
$ docker push USERNAME/exampleapp-ruby:k8s
The assumption is Kubernetes, Vault, and Consul are configured correctly.
Update the configuration file to use your Docker image.
Apply the configuration that describes the exampleapp-simple pod.
$ kubectl apply -f exampleapp.yaml
Check the logs of the server.
$ kubectl logs exampleapp-simple-c54944b4c-pjqlc
Login to the instance.
$ kubectl exec -it exampleapp-simple-c54944b4c-pjqlc /bin/bash