An open API service indexing awesome lists of open source software.

https://github.com/boreec/opentofu-ping-pong

🧈🏓 OpenTofu playground with Minikube for two REST server that continuously exchange messages.
https://github.com/boreec/opentofu-ping-pong

go http-server kubernetes minikube opentofu rust terraform

Last synced: 2 months ago
JSON representation

🧈🏓 OpenTofu playground with Minikube for two REST server that continuously exchange messages.

Awesome Lists containing this project

README

          

# 🧈🏓 OpenTofu ping-pong WIP

This project is a custom implementation using **Opentofu** and **Minikube**
featuring two REST servers that continuously exchange ping-pong messages every
5 seconds.

- [Requirements](#requirements)
- [Contents](#contents)
- [Usage](#usage)

## Requirements

- [Docker](https://www.docker.com/)
- [Helm](https://helm.sh/)
- [Make](https://www.gnu.org/software/make/)
- [Minikube](https://minikube.sigs.k8s.io/docs/)
- [OpenTofu](https://opentofu.org/)

## Contents

- **server-ping**: HTTP REST server made with Go that initiates the exchange
and responds on `/ping`.
- **server-pong**: HTTP REST server made with Rust that responds to ping
and responds on `/pong`.

## Usage

All actions are done through the Makefile. To start the minikube cluster (if
it is not already running), and deploy resources:

```console
make deploy
```

For monitoring, access the dashboards via Grafana in the browser:

```console
make open-grafana
```

After use, clean up the resources:

```console
make clean
```