show-me-secrets/README.md

37 lines
1.1 KiB
Markdown
Raw Normal View History

2018-11-06 06:18:04 +00:00
# Ruby app that uses for Kubernetes Service Catalog
2018-11-06 06:14:35 +00:00
![show-me-secrets](docs/show-me-secrets-demo.png)
To deploy the sample Ruby/Sinatra application with a service instance/binding from your Service Catalog:
```shell
helm upgrade --install 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".
2018-11-06 06:14:35 +00:00
To run the app without a database service instnace/binding:
```shell
helm upgrade --install show-me-secrets . \
--set "database.service.class=null"
```
2018-11-06 06:14:35 +00:00
To view the app via port forwarding:
```shell
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:
```shell
helm delete --purge show-me-secrets
```