Skip to content

yhyakuna/vault-action-exampleapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Exampleapp in Ruby

Local Development

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

Docker Image

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

Load it into Kubernetes

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published