This example stands ok for scenario of post init but what about the situation of bootstrap like initializing the DB connection during container start, that config probably has to stay outside the code and has to be managed with kube deployments?
Very good video, thank you. Your videos on Spring cloud Kubernetes are very helpful. Can you please do a video on Kubernetes cron job which runs a component in the Spring boot application?
We have dev and qa pods in the same namespace and the configurations are different from environment to environment do i have to create 2 configmap and update bootstrap.yml accordingly? or any other solution
Ideally, thats not a good practice to have dev and qa in same namespace. If thats not possible to move out of a namespace, use different configmaps for each of your env. control the usage of the configmap via runtime arguments in ur deployment.yml while provisioning ur pod.
Hi, first of all thank you very much for the video!! One question, 16:03 I tried to run the skaffold but it said command not found. How can I configure it?
How can we use multiple configmaps for multiple environments? Let's say I have the develop and production environments. How could I set different properties to each?
Thanks for this video. Have 1 question...since you are calling the refresh URL using service and if you have multiple pods the request will hit only one pod (if I am not wrong). How would you make sure that refresh is called in all pods ? Do we have to implement another solution for that like a fanout exchange which will trigger a programmatic refresh on all pods?
make sure a pod that runs with spring-cloud-kubernetes has access to the Kubernetes API. github.com/spring-cloud/spring-cloud-kubernetes/blob/master/docs/src/main/asciidoc/security-service-accounts.adoc
Superlike to this video.... wonderful crisp to the point video ...
Thank you Ayan. Glad it's useful
a really Value Video. Thank you man :) I will do the same with helm charts
This example stands ok for scenario of post init but what about the situation of bootstrap like initializing the DB connection during container start, that config probably has to stay outside the code and has to be managed with kube deployments?
Very good video, thank you. Your videos on Spring cloud Kubernetes are very helpful. Can you please do a video on Kubernetes cron job which runs a component in the Spring boot application?
Thanks for the tutorial. When we will deploy this setup on gcp or aws the refresh will update the messages on all the nodes?
is there a way to auto refresh the spring boot application instead of manually hitting the /actuator/refresh endpoint??
spring cloud config server can be used with spring cloud bus to auto refresh changes whenever you commit in to git
We have dev and qa pods in the same namespace and the configurations are different from environment to environment do i have to create 2 configmap and update bootstrap.yml accordingly? or any other solution
Ideally, thats not a good practice to have dev and qa in same namespace. If thats not possible to move out of a namespace, use different configmaps for each of your env. control the usage of the configmap via runtime arguments in ur deployment.yml while provisioning ur pod.
Wouldn't the refresh just hit any one of the pods ?
Which IntelliJ plugin(s) did you use to autocomplete 1) @RestController 2) Maven Dependencies 3) Dockerfile?
It’s an inbuilt plug-in - Live Template.
Hi, first of all thank you very much for the video!!
One question, 16:03 I tried to run the skaffold but it said command not found. How can I configure it?
You can take a look at Skaffold video. You need to install that CLI
@@TechPrimers Cool! I'm taking a look at it, thanks!!!!
How can we use multiple configmaps for multiple environments? Let's say I have the develop and production environments. How could I set different properties to each?
i created one for above example.checkout main branch
github.com/asimarunava/spring-kube-usermicro.git
Thanks for this video.
Have 1 question...since you are calling the refresh URL using service and if you have multiple pods the request will hit only one pod (if I am not wrong). How would you make sure that refresh is called in all pods ?
Do we have to implement another solution for that like a fanout exchange which will trigger a programmatic refresh on all pods?
i created one for above example.checkout main branch
github.com/asimarunava/spring-kube-usermicro.git
Hi Mahesh do you have any solution found for the multiple PODS refresh If so please let me know
@@aparnapericherla3961 No. But you can use reloadable properties for this purpose.
If we don’t keep the local application.yml file the how do we do local development?
You can keep them in a separate config repo
Is this one still working? It always returns default message to me.
make sure a pod that runs with spring-cloud-kubernetes has access to the Kubernetes API. github.com/spring-cloud/spring-cloud-kubernetes/blob/master/docs/src/main/asciidoc/security-service-accounts.adoc
In my case, I have to add @RefreshScope in the test controller, I'm using spring boot 2.2.6.RELEASE
Thanks
I had emailed you to join your slack channel, however I didn't receive any reply
Is it. You can join directly using this link - bit.ly/JoinTechPrimers
@@TechPrimers this is not working
how to access to your slack channel?
Sign up at bit.ly/JoinTechPrimers