'spring-cloud-starter-kubernetes-config not using k8s configmap, but spring-cloud-starter-kubernetes-client-all do

With used dependency spring-cloud-starter-kubernetes-config (1.1.10.RELEASE) spring application not reading values from configmap and just ignore it. But when i changed dependency to spring-cloud-starter-kubernetes-client-all (2.1.1), in k8s pod logs info the app reads values from configmap, with same application/bootstrap.yml configuration.

But we dont need all starter components, that uses transitive dependencies and produces its conflicts. For example, right now app fails with Caused by: java.lang.ClassNotFoundException: org.hibernate.boot.model.naming.CamelCaseToUnderscoresNamingStrategy

Spring boot 2.5.4

How to configure application work with configmap with only spring-cloud-starter-kubernetes-config dependency?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source