Skip to content

ryandawsonuk/secrets-treasurehunt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Treasure Hunt

Aims

To explore kubernetes secrets with a treasure hunt game in minikube.

Pre-requisites

Docker (https://docs.docker.com/install/) and minikube (https://kubernetes.io/docs/tasks/tools/install-minikube/) installed.

How to Run In Minikube

Start minikube:

minikube start --memory 4000 --cpus 3

Build image for minikube - from this directory run

eval $(minikube docker-env)
docker build . -t treasurehunt

Deploy with

kubectl create -f ./treasurehunt

First access from:

minikube service treasurehunt-entrypoint

And play by going to e.g. http://localhost:30080/treasure?x=1&y=1

Delete with

kubectl delete -f ./treasurehunt

And stop with minikube stop

Or in minikube with Helm

As above but replace the kubectl create command with:

helm install --name=pet-parrot ./charts/treasurehunt/

Or to set the treasure location then instead:

helm install --name=pet-parrot --set treasure.location.x=3,treasure.location.y=2 ./charts/treasurehunt/

And access with:

minikube service pet-parrot-treasurehunt

To remove use helm del --purge pet-parrot