example image
This commit is contained in:
parent
7db5b882d1
commit
b3b2917cd2
14
README.md
14
README.md
|
@ -1,5 +1,7 @@
|
||||||
# Spring Music for Kubernetes Service Catalog
|
# Spring Music for Kubernetes Service Catalog
|
||||||
|
|
||||||
|
![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:
|
To deploy the sample Ruby/Sinatra application with a service instance/binding from your Service Catalog:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
|
@ -9,13 +11,23 @@ helm upgrade --install show-me-secrets . \
|
||||||
|
|
||||||
In the example above, it is assumed that your Service Catalog has a service class "cleardb" with a 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 Spring Music without a database service instnace/binding:
|
To run the app without a database service instnace/binding:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
helm upgrade --install show-me-secrets . \
|
helm upgrade --install show-me-secrets . \
|
||||||
--set "database.service.class=null"
|
--set "database.service.class=null"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
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
|
## Clean up
|
||||||
|
|
||||||
To remove the sample application:
|
To remove the sample application:
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 288 KiB |
Loading…
Reference in New Issue