The primary purpose of this application was to show how a service instance from Service Catalog could appear as both a set of environment variables or files on the file system.
Go to file
starkandwayne-bot 4e359d858c Updating CODE_OF_CONDUCT.md 2019-01-15 15:46:59 -05:00
ci rename testflight job 2018-11-19 13:36:10 +10:00
docs example image 2018-11-06 16:14:35 +10:00
public hello world in html 2018-11-06 14:48:36 +10:00
templates show any files inside /secrets folder 2018-11-06 16:03:06 +10:00
views ignore directories 2018-11-06 16:12:53 +10:00
CODE_OF_CONDUCT.md Updating CODE_OF_CONDUCT.md 2019-01-15 15:46:59 -05:00
Chart.yaml release v0.1.2 2018-11-18 23:34:22 +00:00
Dockerfile hello world app 2018-11-06 14:42:38 +10:00
Gemfile hello world app 2018-11-06 14:42:38 +10:00
Gemfile.lock hello world app 2018-11-06 14:42:38 +10:00
README.md Default installation always works - does not assume Service Catalog has been installed (fixes `no matches for kind "ServiceBinding"`) 2018-11-19 09:26:55 +10:00
app.rb show any files inside /secrets folder 2018-11-06 16:03:06 +10:00
config.ru hello world app 2018-11-06 14:42:38 +10:00
values.yaml release v0.1.2 2018-11-18 23:34:22 +00:00

README.md

Displays environment variables and /secrets folders

The primary purpose of this application was to show how a service instance from Service Catalog could appear as both a set of environment variables or files on the file system.

show-me-secrets

To deploy the sample Ruby/Sinatra application with a service instance/binding from your Service Catalog:

helm plugin install https://github.com/hypnoglow/helm-s3.git
helm repo add starkandwayne s3://helm.starkandwayne.com/charts
helm repo update

helm upgrade --install show-me-secrets starkandwayne/show-me-secrets \
    --set "database.service.class=cleardb,database.service.plan=spark"

In the example above, it is assumed that your Service Catalog has a service class "cleardb" with a service plan "spark".

To run the app without a database service instance/binding:

helm upgrade --install show-me-secrets starkandwayne/show-me-secrets

To view the app via port forwarding:

export POD_NAME=$(kubectl get pods --namespace default -l "app.kubernetes.io/name=ruby-with-binding,app.kubernetes.io/instance=show-me-secrets" -o jsonpath="{.items[0].metadata.name}")
echo "Visit http://127.0.0.1:3000 to use your application"
kubectl port-forward $POD_NAME 3000:8080

As it says, visit http://127.0.0.1:3000 to use your application.

Clean up

To remove the sample application:

helm delete --purge show-me-secrets