Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parallel of Spring Config Server in Kubernetes #87

Open
deepank-sharma opened this issue Dec 1, 2017 · 3 comments
Open

Parallel of Spring Config Server in Kubernetes #87

deepank-sharma opened this issue Dec 1, 2017 · 3 comments

Comments

@deepank-sharma
Copy link

This is just a question.
We are using Spring Config Server today, We have multiple apps, environments etc. Configs for which are activated using spring application name and spring profile active arguments.
What is the best approach that we can take to have the same flexibility over Kubernetes.
Config Map is definitely an option, but if we use fabric8 maven plugin to deploy our apps into a Kubernetes cluster, and we need different configs for different environment, how do we inject configs per environment based on spring profiles.
Any POC or a github repository would be useful.
Thanks in advance.
Cheers !!

@nkravi
Copy link

nkravi commented Jan 11, 2018

We did the same thing. We started with spring cloud later moved on to kubernetes.
Kubernetes is way more clean way of maintaining configuration for different environments . Developer need not worry about where the application runs. There are many ways of using config maps (environment variable, as file). We have used it as a file.

@deepank-sharma
Copy link
Author

deepank-sharma commented Jan 12, 2018

@nkravi Thanks for your response.
Can you share some information on how do you manage and deploy your Pods with different config maps per environment using the same image. If there is a POC repository would be really helpful.
Also what are the ways you have implemented to refresh the configs in the application.
Thanks in advance.

@ravi-k8
Copy link

ravi-k8 commented Nov 4, 2018

I am also looking for a solution in which configMap properties are loaded based on the activated profile like dev ,prod.

@deepank-sharma Please post if you have got any solution. Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants