Thanks to Craig Walls, (@habuma) I learned a new way to deploy Kubernetes on local environment.
The video link of the relevant videos,
Spring Developer YouTube Channel,
Devnexus YouTube Channel,
The objective is by the help of the dekorate kubernetes-spring-starter plugin, kubernetes.yml file would be generated for a Spring Boot project. And finally start the application with skaffold.
For skaffold, basically to commands need to be executed. First of all initiate the project with skaffold init command so that skaffold.yaml file would be generated on the Spring Boot project root. Secondly start the application with skaffold dev command.
dekorate plugin to be added to pom.xml as a dependency.
<dependency>
<groupId>io.dekorate</groupId>
<artifactId>kubernetes-spring-starter</artifactId>
<version>4.1.1</version>
</dependency>
Dekorate configuration options,
https://github.com/dekorateio/dekorate/blob/main/assets/config.md
Dekorate GitHub,
https://github.com/dekorateio/dekorate
Another resources to check from the creator of Dekorate from RedHat Developers website, see the link below,
Using Dekorate to generate Kubernetes manifest for Java Application
And a video from the RedHat Developers from Devoxx UK YouTube channel.
https://youtu.be/1_sJVbabBgk?si=cDna-wLD37tlfoqE
