I could not find any documentation about configuring spring-cloud components on Spring Native applications. I've tried using spring-cloud-kubernetes-fabric8-leader with no luck.
- I've got
java.lang.ClassNotFoundException: io.fabric8.kubernetes.client.impl.KubernetesClientImpl, fixed it by registring this class with @RegisterReflectionForBinding
- then -
No constructor or factory method candidate found for Root bean: class [org.springframework.cloud.kubernetes.commons.discovery.KubernetesDiscoveryProperties] - fixed it by using older version (2022.0.1)
- After that, I found out, that
KubernetesClient bean is not being created, so I set spring.main.cloud-platform property to KUBERNETES, assuming it is failing to detect coud platform at runtime. This resulted in:
Fatal error: com.oracle.svm.core.util.VMError$HostedError: com.oracle.svm.core.util.VMError$HostedError: New Method or Constructor found as reachable after static analysis: public java.time.Duration org.springframework.cloud.kubernetes.commons.config.reload.ConfigReloadProperties.maxWaitForRestart()
I could not find any documentation about configuring spring-cloud components on Spring Native applications. I've tried using
spring-cloud-kubernetes-fabric8-leaderwith no luck.java.lang.ClassNotFoundException: io.fabric8.kubernetes.client.impl.KubernetesClientImpl, fixed it by registring this class with@RegisterReflectionForBindingNo constructor or factory method candidate found for Root bean: class [org.springframework.cloud.kubernetes.commons.discovery.KubernetesDiscoveryProperties]- fixed it by using older version (2022.0.1)KubernetesClientbean is not being created, so I setspring.main.cloud-platformproperty to KUBERNETES, assuming it is failing to detect coud platform at runtime. This resulted in: