wordle-operator ?⬛??⬛

Play Wordle from any Kubernetes cluster.


Using the power of CustomResourceDefinitions and Kubernetes Operators, now you can play Wordle, the game by Josh Wardle, in your Kubernetes cluster.

asciicast

Installation

# Copy wordle-operator.yaml locally
kubectl create namespace wordle
kubectl apply -f wordle-operator.yaml -n wordle
kubectl api-resources --api-group='operators.lucasmelin.com' # Shows the new resource

Alternative - Build and install from source

Build and install from source

# Setup
git clone https://github.com/lucasmelin/wordle-operator.git
cd wordle-operator
docker build . -t lucasmelin/wordle-operator
kubectl create namespace wordle
kubectl apply -f wordle-operator.yaml -n wordle
kubectl api-resources --api-group='operators.lucasmelin.com' # Shows the new resource

Playing the game

# Start guessing - use guess.yaml as a reference for the format
kubectl apply -f guess.yaml -n wordle # Make a guess
kubectl describe configmaps -n wordle # Look at the result of your guess

# Change the word to your new guess in guess.yaml
kubectl apply -f guess.yaml -n wordle # Make another guess
kubectl describe configmaps -n wordle # Look at the result of your guess

Uninstall

kubectl delete crd wordles.operators.lucasmelin.com
kubectl delete namespace wordle
GitHub - lucasmelin/wordle-operator at pythonawesome.com
Play Wordle from any Kubernetes cluster. Contribute to lucasmelin/wordle-operator development by creating an account on GitHub.