Member-only story

Hands-on Microservices: Deploy a SpringBoot application to a KIND Kubernetes cluster with Eclipse JKube and Gradle

Eugen Hoble
6 min readFeb 13, 2024

--

Streamlining Cloud-Native Development: A Step-by-Step Guide to Launching Your SpringBoot Microservice on a KIND Cluster Using Eclipse JKube and Gradle

Photo by Caspar Camille Rubin on Unsplash

This tutorial continues where the Setting Up a SpringBoot Application: Eclipse, PostgreSQL, and Docker Integration tutorial left it off.

We’’ll also use the cluster we did set up in Step-by-Step Guide to Creating a Kubernetes Cluster with KIND and KUBEADM

By the end, we’ll have a SpringBoot application running in Eclipse, built on top of JKube and a KIND cluster.

1. Add Eclipse JKube to our SpringBoot application

Add the following in the plugins section of the build.gradle

plugins {
id "org.eclipse.jkube.kubernetes" version "1.15.0"
}

and,

implementation group: 'org.eclipse.jkube', name: 'kubernetes-maven-plugin', version: '1.15.0'

in the dependencies section.

To start up kubernetes, run the following command in a terminal.

$./gradlew build k8sBuild k8sPush k8sResource k8sApply

--

--

No responses yet