• Home
  • Spring Boot to Kubernetes

From a blank slate to a Spring Boot app running on Kubernetes.

Spring Boot to Kubernetes

From a blank slate to a Spring Boot app running on Kubernetes.
Spring Boot to Kubernetes

The lab walks through a series of steps that go from a blank slate of no code to running a Spring Boot application on Kubernetes. Starting with a blank Kubernetes cluster and an empty source code directory these steps will:

  1. Generate a Spring Boot skeleton project for a demo application
  2. Add some basic REST endpoints to the code
  3. Define a multi-stage Dockerfile
  4. Build the jar and the container
  5. Push the container to a local, private registry
  6. Send a declaration to Kubernetes to start the demo application
  7. Run the application

In this lab, you will learn how to:

    ☐ Write a getting started Spring Boot application
    ☐ Run a Gradle (or Maven) build when the container is built
    ☐ Push a container to a private registry on Kubernetes
    ☐ Instruct Kubernetes to start and application
    ☐ Access an application service running on Kubernetes

A good followup to this lab is Distilling Java Containers.

  • LEVEL

    Beginner

  • DURATION

    15 minutes

  • UPDATED

    31 Dec, 2021