Skip to content

bynr/k8s-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

k8s-playground 🎲🎳⚽

Personal playground with k8s


1. k3d + argo + localstack + github actions

Requirements 📚

  • docker
  • kubectl
  • k3d
  • argo (client)

Resources 🧑‍💻

Run 🏃

cd argo/

make create_cluster
make switch_context
make create_namespace
make setup_argo_controller
make setup_localstack

make submit WF_FILENAME=hello-world.yaml
make submit WF_FILENAME=https://raw.githubusercontent.com/argoproj/argo/a24bc944822c9f5eed92c0b5b07284d7992908fa/examples/dag-coinflip.yaml

2. k3d + localstack + Ingress 🤖

Run 🏃

cd ingress/

make create_cluster
make download_images
make import_images
make apply

# To run localstack's web UI, use the image with all dependencies: `localstack-full`.
make test
make upload_to_s3

3. k3d + local path + reload code 👾

Useful for local development without restarting the whole cluster.

Run 🏄

cd k3d-volume/

make create_cluster
make apply
make logs

# change src code in src/hello-loop/py
make restart_container_v2
make logs

# You will see the code is properly updated in the logs

Other resources 📖

The examples seek to be:

As simple as possible to illustrate the functionality

Self-contained (ie limited to one .yaml file)

Non-conflicting (eg resource names are unique)

Clear (eg resource names are verbose and unambiguous)

About

Personal playground with k8s

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published