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
Dr Nic Williams 721bd282b6 shipit cuts versioned docker image first, then cuts helm package to ensure anyone getting it has a valid docker image 2018-11-19 09:33:31 +10:00
ci shipit cuts versioned docker image first, then cuts helm package to ensure anyone getting it has a valid docker image 2018-11-19 09:33:31 +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
Chart.yaml release v0.1.1 2018-11-16 02:10:35 +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 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

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