Example project built with spring cloud HoxtonSR6, Dekorate, Skaffold.
This repository is an example of how to create spring cloud application and hide the complexity of creating kubernetes deployment resources files with Dekorate , built with Jib and deploy directly to kubernetes local cluster e.g. minikube/kind/microk8s with Skaffold
- Java 8
- Spring Framework
- Dekorate
- Jib
- Skaffold
- Install Skaffold cli from this link
- Open this project in your favorite IDE (I recommended Intellij IDEA or VS Code)
- Setting up your local/Remote cluster if you did not have any cluster yet, you can refer to these for starter.
- there are 2 simple approaches to build & deploy the application
- 3.1 via Command line
- open your terminal.
cd
to project directory
$ mvn clean install $ skaffold dev
- 3.2 via plugins
- Find maven tab and click on install.
- Search for plugin named
Cloud Code
by google, install then restart your IDE - Open Run/Debug Configuration(in the top tools bar)
- Select
+
sign then chooseCloud Code : Kubernetes
- in Run/Debug Setting.
- Choose your kube config
- choose your context via
Deployment
section e.g. minikube/kind
- click run
- 3.1 via Command line