jkube: Resource example does not work
I tried the jkube/quickstarts/maven/external-resources/ example to create a deployment with a configmap. I just copied the deployment.yml and the configmap.yml. I renamed configmap to configmap-cr, k8s:build just work fine if I use a fixed value of ‘welcome’ (Otherwise the build fails since there is no value specified in application. properties) But k8s:resource fails with a NullPointer Exception. Now I am confused. a) I thought the point of a configmap was to parametrize the image. But if a value is expected in application.properties (which is bundled in the jar) what would be point? b) What am I missing? How do I make this example work? c) In the example in the configmap we have data: application.properties: | # spring application properties file what does that mean?
Saw Rohan’s article on custom resource fragments. Nice! I am writing an article on tools for Java developers and your help would be appreaciated. Thx.
Description
Info
- Eclipse JKube version :
- Maven version (
mvn -v) :
-
Kubernetes / Red Hat OpenShift setup and version :
-
If it’s a bug, how to reproduce :
-
If it’s a feature request, what is your use case :
-
Sample Reproducer Project : [GitHub Clone URL]
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 32 (14 by maintainers)
Dear Rohan Kumar, https://dzone.com/articles/kubernetes-for-java-developers
On Tue, Apr 27, 2021 at 12:32 PM Taruvai Subramaniam < @.***> wrote:
–
" Any intelligent fool can make things bigger, more complex and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction" - Albert Einstein