Kubernetes Project
Kubernetes Project
Kubernetes Project
You will need a Linux or Linux-like command line. Command line examples in this guide
work on Linux, a MacOS terminal with a shell, or WSL on Windows.
kubectl cluster-info
To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.
First, we create a Spring Boot application. If you have one you prefer to use already in
github, you could clone it in the terminal (git and java are installed already). Alternatively, you
can create an application from scratch by using start.spring.io:
GroupId: learnk8s.io
Name: knote-java
Next, go to the dependencies section and choose:
Web -> Spring Web Starter: basic web stack support in Spring Boot
Actuator -> Spring Boot Actuator: provide health endpoints for our application
FreeMarker -> Apache FreeMarker: templating engine for HTMLs
MongoDB -> Spring Data MongoDB: driver and implementation for Spring Data interfaces to
work with MongoDB
Lombok -> Lombok: library to avoid a lot of boilerplate code
Then click Generate the project to download a zip file containing the skeleton of your app.
Within knote-java application, there are two files in charge of rendering the Front End: