Skip to content

Latest commit

 

History

History
40 lines (37 loc) · 2 KB

File metadata and controls

40 lines (37 loc) · 2 KB

skaffold-dekorate-springcloud-example

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

Tools used

Test run the application

  1. Install Skaffold cli from this link
  2. Open this project in your favorite IDE (I recommended Intellij IDEA or VS Code)
  3. Setting up your local/Remote cluster if you did not have any cluster yet, you can refer to these for starter.
  4. 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.
      • mvn install
      • Search for plugin named Cloud Code by google, install then restart your IDE
      • cloud code plugin
      • Open Run/Debug Configuration(in the top tools bar)
      • Select + sign then choose Cloud Code : Kubernetes
      • in Run/Debug Setting.
        • Choose your kube config
        • choose your context via Deployment section e.g. minikube/kind
      • click run