csh0101 / serpent

snek in k8s create chaos

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Serpent

Control snake. Eat food. Create chaos.

Contents

⭐ What is Serpent? ⭐

Serpent lets you play snake while wrecking havock in your Kubernetes cluster. Have fun while you can.

How does it work? 🤔

Each piece of food you eat corresponds to a pod in your cluster (I left out kube-system though..).

Installation

Homebrew 🍺

To install Serpent using Homebrew, you can run the following commands:

brew tap deggja/serpent https://github.com/deggja/serpent
brew install serpent

Build from source 💻

To build Serpent from the source, you need a working Go environment with version 1.21 or higher. Follow these steps:

git clone https://github.com/deggja/serpent.git --depth 1
cd serpent
go build -o serpent

Usage

Starting the game

To start the game, simply run the compiled binary:

./serpent

Playing Serpent

Use the arrow keys to navigate the snake around the screen:

  • Up arrow - Move up
  • Down arrow - Move down
  • Left arrow - Move left
  • Right arrow - Move right

asciicast

Kubernetes interaction

Serpent will require access to your Kubernetes cluster. Ensure your kubeconfig is set up correctly before starting the game. The application currently expects the kubeconfig at its default location.

As you play and the pods are deleted, Serpent will log the actions to a chaos.log file for your review.

Contribute 🔨

Feel free to dive in! Open an issue or submit PRs.

Acknowledgments

This project utilizes Termloop, a simple Go library for creating terminal-based games. Thanks to the creators and contributors of Termloop for providing such a versatile tool.

Logo is generated using DALL-E and edited using canva.

License

Serpent is released under the MIT License. Check out the LICENSE file for more information.

About

snek in k8s create chaos


Languages

Language:Go 92.4%Language:Ruby 7.6%