https://github.com/alainpham/techlab-fis-configmap
How to use configmaps to externalize variables with Fuse on Openshift (FIS 2.0)
https://github.com/alainpham/techlab-fis-configmap
Last synced: 3 months ago
JSON representation
How to use configmaps to externalize variables with Fuse on Openshift (FIS 2.0)
- Host: GitHub
- URL: https://github.com/alainpham/techlab-fis-configmap
- Owner: alainpham
- License: apache-2.0
- Created: 2018-01-25T15:07:58.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-25T15:08:15.000Z (over 7 years ago)
- Last Synced: 2025-01-27T07:42:24.194Z (4 months ago)
- Language: Java
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
#This demo shows you how to use config maps with FIS projects on Openshift
The main elements in this example can be seen in the src/main/fabric8/deployment.yml
Make sure you have the configurations to mount the configmap there.0) Run this project locally and see the logged property myproperty (you can find it in the resources/application.properties file)
mvn spring-boot:run1) Install config map on Openshift
oc create configmap --from-file=configmaps/application.properties techlab-fis-configmap-config
2) deploy the application using the maven fabric8 plugin
mvn fabric8:deploy
Check the logs to see that the variable from the configmap has been taken into account.