Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

Repository files navigation

Debugging Java Applications with mirrord

Overview

This repository contains a sample Java Spring Boot application that demonstrates how to use mirrord for local development and debugging of Kubernetes applications.

About the Application

This is a simple note-taking application built with:

  • Java Spring Boot
  • MongoDB for data storage
  • MinIO for image storage

Prerequisites

  • Java 11 or higher
  • Maven
  • Docker
  • Kubernetes cluster (local or remote)
  • mirrord CLI installed

Quick Start

  1. Clone the repository:
git clone https://github.com/waveywaves/mirrord-go-debug-example
cd mirrord-go-debug-example
  1. Deploy to Kubernetes:
kubectl apply -f kube
  1. Run the application locally with mirrord:
mirrord exec -t deployment/knote mvn spring-boot:run

How it Works

mirrord allows you to run your local Java application while stealing traffic from your Kubernetes cluster. This means:

  • Network traffic intended for your pod is intercepted and sent to your local instance
  • Your local application can access cluster resources (MongoDB, MinIO) as if it were running in the cluster
  • You can debug your application locally while it processes real cluster traffic

Configuration

The mirrord configuration is stored in .mirrord/mirrord.json and specifies:

  • Network traffic stealing
  • File system access
  • Environment variable copying
  • Target deployment details

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages