This is a sample app for the Rails 5.2 Credentials and Kubernetes post.
The interesting parts are:
Dockerfile
builds minimalistic Docker image with the app.dockerignore
tells Docker to ignoreconfig/master.key
script/release
is a script for building and pushing Docker imageconfig/deployment.yml
is Kubernetes Deployment spec that uses Kubernetes secret managementapp/controllers/helloworld_controller.rb
renders decrypted secrets as HTML
That's it!