Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ***************
- see full details here : http://quamiller.com/8fAd
- **************
- Setup
- You might need access to a Kubernetes cluster to play with this application. The easiest way to get a local Kubernetes cluster up and running is using minikube.The rest of this post assumes you have minikube up and running.
- Like ConfigMaps, Secrets can be configured in two ways:
- As Environment Variables
- As Files
- Secrets as Environment Variables
- The Spring Boot application that we will build in this blog post uses spring-security. Spring Security, by default, enables security on the entire Spring Boot application.
- The default user and password of the application will be displayed to the developer during application boot up.
- Using default security password: 981d5f9f-c8ea-413f-8f3b-71daaa20d53c
- To override the default security user/password, you need to update the application.properties to be:
- security.user.name=${SECRETS_DEMO_USER:demo}
- security.user.password=${SECRETS_DEMO_USER_PASSWD:demo}
- Letβs now follow the next steps to inject the environment variables....
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement